ie提示语法错误,但是在其他浏览器没错
部分代码
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
// get new layer and show it
ddmenuitem = document.getElementById(id);
if(ddmenuitem) ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}
// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}
<li><a href="ejym_more.aspx?NewType=002" onmouseover="mopen('M002')" onmouseout ="mclosetime()"><b>信息调研</b></a> <div id='M002' class='ej' onmouseover="mcancelclosetime()" onmouseout=="mclosetime()">
<a href="ejym.aspx?NewType=00201">网讯</a>
<a href="ejym.aspx?NewType=00202">调研</a>
</div> </li>
ie提示红字一行语法错误。无语。在chrome就没有错误。求各位大侠拔刀相助!
------解决方案--------------------onmouseout=
="mclosetime()" 多了个=号