[实用技巧]HTML中的框架
http://www.6to23.com/s15/s15d1/s15d1d6/s15d1d6d5/s15d1d6d5d5/20029393639.htm

解决方案 »

  1.   

    <script language="javascript">
    element.zIndex = 999;
    </script>
      

  2.   

    因为我的菜单时jsp动态生成的,所以有没有比较灵活的方法?
      

  3.   

    刚好写了一个超覆盖能力的,什么都能遮挡,flash,select,甚至能遮住别的窗体和状态栏
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>PTMusic后台维护</title>
    <style>
    body,td
    {
    font-size:12; 

    }
    th
    {
    letter-spacing:5;
    font-size:12;
    height:20;
    filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#ffffff', endColorStr='#D4D0c8', gradientType='0');
    }
    table
    {
     border:4px #999999 double ;
     border-collapse:collapse;  
    }
    </style>
    </head>
     
    <TABLE  BORDER=1 CELLPADDING=1 CELLSPACING=1   style='cursor:hand' width="200">
      <TR>
    <TH onmouseover="showMenu(this,1); ">音乐库</TH>
    <TH onmouseover="showMenu(this,2);">评论</TH>  
    </TR>
    </TABLE>
    <p style="display:none" id="menu1">
    <TABLE WIDTH=100 BORDER=1  style='cursor:hand'  style='border:4px #999999 double;border-collapse:collapse;background-color:#ddd9d3;'>
    <TR><TD style='font-size:9pt;'onclick="parent.location.href='../music/area.asp'">大类管理</TD></TR>
    <TR><TD style='font-size:9pt;' onclick="parent.location.href='../music/artist.asp'">歌手管理</TD></TR>
    <TR><TD style='font-size:9pt;' onclick="parent.location.href='../music/collection.asp'">专辑管理</TD></TR>
    <TR><TD style='font-size:9pt;' onclick="parent.location.href='../music/song.asp'">歌曲管理</TD></TR>
    <TR><TD style='font-size:9pt;' onclick="parent.location.href='../music/lib_batch.asp'">批量上传</TD></TR>
    </TABLE>
    </p>
    <p style="display:none" id="menu2">
    <TABLE WIDTH=100 BORDER=1  style='cursor:hand'  style='border:4px #999999 double;border-collapse:collapse;background-color:#ddd9d3;'>
    <TR><TD style='font-size:9pt;' onclick="parent.location.href='../comment/comment.asp'">类别管理</TD></TR>
    <TR><TD style='font-size:9pt;' onclick="parent.location.href='../comment/com_content.ASP'">评论管理</TD></TR>
      </TABLE>
    </p>
     
    <SCRIPT>
    var oPopup = window.createPopup();
     
    function showMenu(obj,x)
    {     
       var oPopBody = oPopup.document.body;   
       var  HTML = document.all("menu" + x).innerHTML ;
       oPopBody.innerHTML = HTML; 
       var rows = HTML.match(/<TR>/g).length;
        oPopup.show(obj.offsetLeft + 10, obj.offsetTop + 40, 100, rows * 24, document.body)  ;
    }
     
    </SCRIPT>
    </body>
    </html>