c 发表于 2008-6-27 00:48

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%


页: [1]

编程论坛