IE8正式发布了,下载安装后,访问系统时发现,maximo的二级菜单打不开了,调试后发现,原来是脚本有问题
不支持原来的方法,修改后,去掉
function setPopLocation(popObj)
{
hrequired = parseInt(document.body.clientWidth-2) - parseInt(popObj.offsetWidth);
vrequired = parseInt(document.body.clientHeight-2) - parseInt(popObj.offsetHeight);
//opener = popObj.openermenu;
if(menuX >= hrequired)
{
//if(opener)
if (popObj.openermenu)
menuX= menuX-popObj.openermenu.clientWidth-popObj.clientWidth;
else
menuX= hrequired;
}
if(menuY >= vrequired)
{
menuY = vrequired;
}
if(menuX<0)
menuX=0;
if(menuY<0)
menuY=0;
//if(opener)
if (popObj.openermenu)
{
popObj.style.left=menuX;
popObj.style.top=menuY;
}
else
{
popObj.style.left=menuX+document.body.scrollLeft;
popObj.style.top=menuY+document.body.scrollTop;
}
}