IE6触发onmouseover事件IE停止响应
javascript 部分
function showmsg(id)
{for(var i=1 ;i<=3;i++){
if (id==i)
document.getElementById("msgdiv"+i).className="indexTitle";
else
document.getElementById("msgdiv"+i).className="ShowNone";
}
}CSS部分
.ShowNone{ display:none;}
.indexTitle{ float:left; margin:0px auto; width:100px; height:200px; overflow:hidden; margin-left:50px;}HTML部分
<div class="IndexMidDiv">
<div class="indexnav"><img src="/image/1A.jpg" alt="" width="293" height="265" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="19,67,115,182" href="#" onmouseover="showmsg(3)" />
<area shape="rect" coords="204,34,286,173" href="#" onmouseover="showmsg(2)" />
<area shape="rect" coords="99,9,172,56" href="#" onmouseover="showmsg(1)" /></map></div>一旦鼠标移划过热区,IE停止响应,CPU使用100%,showmsg改过很多次,都没有解决,即使showmsg里什么也不写,也出击同样的情况,但时间短一点。排除病毒的可能。FF不会出去这种情况,但鼠标移动过快里,CPU占用也超过50%
javascript 部分
function showmsg(id)
{for(var i=1 ;i<=3;i++){
if (id==i)
document.getElementById("msgdiv"+i).className="indexTitle";
else
document.getElementById("msgdiv"+i).className="ShowNone";
}
}CSS部分
.ShowNone{ display:none;}
.indexTitle{ float:left; margin:0px auto; width:100px; height:200px; overflow:hidden; margin-left:50px;}HTML部分
<div class="IndexMidDiv">
<div class="indexnav"><img src="/image/1A.jpg" alt="" width="293" height="265" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="19,67,115,182" href="#" onmouseover="showmsg(3)" />
<area shape="rect" coords="204,34,286,173" href="#" onmouseover="showmsg(2)" />
<area shape="rect" coords="99,9,172,56" href="#" onmouseover="showmsg(1)" /></map></div>一旦鼠标移划过热区,IE停止响应,CPU使用100%,showmsg改过很多次,都没有解决,即使showmsg里什么也不写,也出击同样的情况,但时间短一点。排除病毒的可能。FF不会出去这种情况,但鼠标移动过快里,CPU占用也超过50%
解决方案 »
- 我要做一个随滚动条滚动的对联广告条
- 帮忙修改一下这段代码用Jquary
- 新手求助:onclick显示改成直接显示出来
- js 事件失效
- javascript不能跨站传值?
- ***********用JS如何让下拉菜单显示DIV,选一项显示相应的DIV而隐藏其他的DIV*************
- 请问兄长,如何把oncontextmenu="return false"移出body标签?
- 请问如何取得JavaScript写的编辑框里面的值?
- 怎么定位到文本框?
- eclipse 里jquery代码提示问题
- 在Firefox 下如何实现HTML在线编辑器回车加入 <p> </p> 标记,加分~
- 想通过javascript+ajax实现google功能,但是如何使javascript定期检查用户输入框变化?
楼主【husonic】截止到2008-06-27 01:25:22的历史汇总数据(不包括此帖):
发帖数:0 发帖分:0
结贴数:0 结贴分:0
未结数:0 未结分:0
结贴率:-------------------结分率:-------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html