mouseover 事务!求解 http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/display.asp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <span style="display:none" id=other>另一句话</span><td mouseover = "other.style.display=''" onmouseout="other.style.display='none'">一句话</td> <span style="display:none" id=other>另一句话</span><td onmouseover = "other.style.display=''" onmouseout="other.style.display='none'">一句话</td <body><table width="200"><tr> <td onmouseover="doThings(this);">一句话1</td> <td onmouseover="doThings(this);">一句话1</td></tr><tr> <td>*********</td> <td>***************</td></tr></table><div style="position:absolute;display:none;background-color:#FFFFCC;border:1px solid #000000;" id="thing">另一句话</div><script language="javascript">function doThings(el){ var thing=document.getElementById("thing"); var r =getPos(el); thing.style.pixelLeft=r.x; thing.style.pixelTop=r.y+el.offsetHeight; thing.style.display="";}function getPos(el){ var r = { x: el.offsetLeft, y: el.offsetTop }; if (el.offsetParent) { var tmp = getPos(el.offsetParent); r.x += tmp.x; r.y += tmp.y; } return r;}</script></body> windows下如何脱离浏览器直接运行JS,象VBS一样? 如何用JavaScript来实现图片地址传递 急求!!关于XTREE的每次显示都重新加载一次xml或action的方法... JSON javascript用什么开饭环境比较好啊? 请问这是什么意思啊var p = [ ['test',null],]; 如何在图片链接中调用javascript? showModalDialog如何关闭状态栏?? 菜鸟向各位高人请教几个简单问题 jQuery怎么跳出函数,函数内有each循环 ·这个过程函数看不太明白,请各位Mister点解? 这段程序什么意思啊~~~~~~~~~~
<td mouseover = "other.style.display=''"
onmouseout="other.style.display='none'">一句话</td>
<td onmouseover = "other.style.display=''"
onmouseout="other.style.display='none'">一句话</td
<table width="200">
<tr>
<td onmouseover="doThings(this);">一句话1</td>
<td onmouseover="doThings(this);">一句话1</td>
</tr>
<tr>
<td>*********</td>
<td>***************</td>
</tr>
</table>
<div style="position:absolute;display:none;background-color:#FFFFCC;border:1px solid #000000;" id="thing">另一句话</div>
<script language="javascript">
function doThings(el){
var thing=document.getElementById("thing");
var r =getPos(el);
thing.style.pixelLeft=r.x;
thing.style.pixelTop=r.y+el.offsetHeight;
thing.style.display="";
}
function getPos(el){
var r = { x: el.offsetLeft, y: el.offsetTop };
if (el.offsetParent) {
var tmp = getPos(el.offsetParent);
r.x += tmp.x;
r.y += tmp.y;
}
return r;
}
</script>
</body>