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> 转载新闻直播怎么转载? jquery fadeIn 在IE下不显示 而且还很卡 JSON数据获取 谁有MzTreeView 2.0的,能不能发份给我。 请教一个关于COOKIE的问题 正则表达式问题,挑战一下自己哦 谁有年份,月份选择控件的代码啊?不需要显示日 为什么不能过滤英文和其他字符 请问用javascript能否把数据写入文本 关于日期的提问,高手答对者给分 ·这个过程函数看不太明白,请各位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>