http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/createpopup.asp?frame=true

解决方案 »

  1.   

    用层作菜单是盖不住框架的,而且也盖不住列表框,如果你的下页有列表框,即使你的下页不是框架,你会发现你的层被列表框穿透了。网上有个盖住他们的菜单例子,是用activex控件,事实上那个菜单是没有办法使用的。盖不住的原因是层的优先级比较低,这个是一个规定,所以解决比较难。你可以用iframe做载体,试试!
      

  2.   

    谢谢各位的回答,请问如何用iframe做载体,是不是将下拉菜单控件放在iframe内,iframe大小在程序中能动态伸缩,当菜单拉开时扩大面积,菜单收起时缩小面积。这实现起来可能有点复杂,本人第一次做网页,不熟。有没有现成的例子程序。再一次谢谢各位。
      

  3.   

    yes, right
    you can include a <iframe> in the a.htm, must give it a name and ID, the menu program you can put it in the iframe, when you want to hidden the iframe you can use "iframeID.style.display = 'none'". you'd must to dynamic display the iframe height, you can use the javascript in the iframe page ,<script language='javascript'>
    funtion loaded()
    {
       window.parent.document.all.iframeID.height =  window.body.scrollHeight;
    }
    </script><body onload="loaded();">use the segment ,you will solve the problem.
      

  4.   

    推荐  ssm1226(雨中人) 说的 createPopup