获取当前鼠标下的标签 如何获取当前鼠标下的标签,前提是鼠标在那不动 我根据另一个 例如时间事件 在第5秒 获取这个标签谁有思路 或者怎么写能达到目的 鼠标悬停什么的就算了 悬停的话 如果不动是不触发事件的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给LZ个思路,下面例子IE6测试通过<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>test</title><script>var currentObj = null;document.onmouseover=function(){ currentObj = event.srcElement;};window.onload = function(){ window.setInterval("showCurrentObj()",5000);}function showCurrentObj(){ alert(currentObj.outerHTML);}</script></head><body><div id=d1 style="background-color:red">111</div><div id=d2 style="background-color:green">222</div><div id=d3 style="background-color:yellow">333</div><div id=d4 style="background-color:blue">444</div></body></html> currentObj = event.srcElement; currentObj = event.srcElement;关键是srcElement 请问怎么打印预览指定URL(web页面)? 关于正则表达式的正向后瞻 有关jQuery 和jQuery ui 之间的问题 谁用过rhino-in-spring没有? 一个JS导航效果怎么改? 在浏览器中,用JS怎么判断一组图片是否下载完成? 初学js请教两个问题,大家帮帮忙看看 在父窗口用window.open()方法,打开新页面后,父窗口能不能自动关闭,并且不用提示? 对于JS控件的一点想法,各位捧场! 多页报表在打印时,如何实现每页的第一行都自动附加报表的表头 Jquery怎么来控制一个复选框 google maps api 我只要部分信息,其他不显示行吗?
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>test</title>
<script>
var currentObj = null;
document.onmouseover=function(){
currentObj = event.srcElement;
};
window.onload = function(){
window.setInterval("showCurrentObj()",5000);
}
function showCurrentObj(){
alert(currentObj.outerHTML);
}
</script>
</head><body>
<div id=d1 style="background-color:red">111</div>
<div id=d2 style="background-color:green">222</div>
<div id=d3 style="background-color:yellow">333</div>
<div id=d4 style="background-color:blue">444</div>
</body></html>