其實matson大是幫我問的
代碼:
<!--
var h;
var l;
var t;
var isvisible;
function HideMenu(e)
{
var mX;
var mY;
var vDiv;
if (isvisible == true)
{
vDiv = document.getElementById("menuDiv");
if (typeof(e)=='undefined') e = window.event;
mX = e.clientX + document.body.scrollLeft;
mY = e.clientY + document.body.scrollTop;
if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
vDiv.style.visibility = "hidden";
isvisible = false;
}
}
}
function ShowMenu(vMnuCode) {
vSrc = window.event.srcElement;
vMnuCode = "<DIV style='PADDING-RIGHT: 6px; FILTER: shadow(color=#5F5F5F,direction=120); PADDING-BOTTOM: 6px;width:98px'><table border=0 cellspacing=1 cellpadding=4 bgcolor=#76AE00 style='line-height:18px' width='98' align='left'><tr bgcolor='#FFFFFF'><td width=14 background=images/common/menubg.gif> </td><td>" + vMnuCode + "</td></tr></table></div>";
h = vSrc.offsetHeight + 0;
l = vSrc.offsetLeft + 0;
t = vSrc.offsetTop + h;
l = parseInt(vSrc.getComputedStyle('left'));
t = parseInt(vSrc.getComputedStyle('top'));
menuDiv.innerHTML = vMnuCode;
menuDiv.style.top = t + 'px';
menuDiv.style.left = l + 'px';
menuDiv.style.visibility = "visible";
isvisible = true;
}
//-->
跟你說的改,和在header中改了hidemenu(e)
還是不行
看http://eternaliwind.no-ip.com/bbs/index.php
這樣弄到IE都看不到了