页面中引用object<OBJECT   classid=clsid:0002E551-0000-0000-C000-000000000046   id=Spreadsheet1   style="width:100%;HEIGHT:95%"> 
    <param name="DisplayToolbar" value="true">
</OBJECT> 请问各位,如何弹出一个div在此object之上。http://topic.csdn.net/t/20051011/10/4318484.html 这帖子的方法不是很灵光。

解决方案 »

  1.   

    最简单的弹出层。现在引用了object,层一直在object的下面,想让div在object上面。
      

  2.   

    IE6.0下测试可以..
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <script type="text/javascript">
    function showMsg(left, top, id){
    var iframe = document.createElement("<iframe frameborder='0'>");
    var msg = document.getElementById(id);
    iframe.style.cssText = "position:absolute; z-index:1000;";
    iframe.style.left = left + "px";
    iframe.style.top = top + "px";

    document.body.appendChild(iframe);
    iframe.contentWindow.document.write(msg.innerHTML);
    iframe.contentWindow.document.close();
    }
    </script>
    </head><body>
    <input type="button" onclick="showMsg(50, 50, 'msg')" value="显示DIV" />
    <OBJECT classid="clsid:0002E551-0000-0000-C000-000000000046" id="Spreadsheet1" style="width:100%;HEIGHT:95%"> 
    <param name="DisplayToolbar" value="true">
    </OBJECT>
    <div id="msg" style="display:none;">
    <div style="width:200px; height:100px; background:#EEE; border:1px solid #FF0000;">
    显示在object上面
        </div>
    </div></body>
    </html>
      

  3.   

    给object加上参数  <param name="wmode" value="transparent">