用Object代码如下:
<OBJECT id="aa" NAME="aa" style="display:none;Z-INDEX: 500; WIDTH: 150; POSITION: absolute;; HEIGHT: 300px" type=text/x-scriptlet data=menu.htm>
</OBJECT>
function hide()
{
document.all("aa").style.display='none';
}
function show()
{
var l=parseFloat(event.clientX);
var t=parseFloat(event.clientY);
var sW=parseFloat(document.body.clientWidth);
var sH=parseFloat(document.body.clientHeight);
with(document.all("aa").style)
{
var h=parseFloat(height.substring(0,3));
left=(l+180>sW?l-152:l);
top=(t+h>sH?t-h+document.body.scrollTop:t+document.body.scrollTop);
display='';
return false;
}
}

解决方案 »

  1.   

    显示下拉菜单时,把iframe隐藏
      

  2.   

    用createpopup做菜单。没有什么可以挡住这样的菜单的。而且自动处理隐藏
    参考
    <html>
    <head>
    <SCRIPT LANGUAGE="JScript">
    var oPopup = window.createPopup();
    function window_onload() {
        var oPopupBody = oPopup.document.body;
    oPopupBody.style.backgroundColor = "lightyellow";
    oPopupBody.style.border = "solid black 1px";    
        oPopupBody.innerHTML = "Display some <B>HTML</B> here.";
        oPopup.show(100, 100, 200, 50, document.body);}
    </SCRIPT>
    </head>
    <body onload="window_onload();">
    </body>
    </html>
      

  3.   

    方法是用一个动态创建的iframe来代替菜单 。
      

  4.   

    用createPopup只有ie5.5以上才有用。最好避免使用iframe.
      

  5.   

    我用<iframe>主要用来实现同一个页面内的导航
    即要打开的新页面在<iframe>中显示,如果不用<iframe>,那么
    用什么来实现-》打开页面在框架内显示呢?<frameset>????
      

  6.   

    <iframe src="http://www.csdn.net" ></iframe>.iframe也可以显示打开的页面啊