有是这种问题??
<OBJECT id=aa style="display:none;z-index:1000; position:absolute; top:0; left:0; width:152; height: 200;" type="text/x-scriptlet"  data="
about:<div style='position:absolute;left:0;top:0;width:152;height:200;font:14;color:white;background:black;border:1 solid black'>
sfgsdfg</div>
"></OBJECT><textarea></textarea><button onclick=aa.style.display=aa.style.display=="none"?"":"none">test</button>

解决方案 »

  1.   

    用 iframe 。xinyunyishui 用的是 becile 的方法。 scriptlet 是一种脚本对象化技术。
      

  2.   

    <body bgcolor="#FFFFFF" text="#000000" onload="frmEdit.document.designMode='On'">
    <div id="Layer1" style="position:absolute; width:89px; height:115px; z-index:1001; left: 350px; top: 21px"> 
      <iframe name="frmEdit" src="about:blank"></iframe> </div>
    <input type="button" name="Button" value="testiframe" onclick=document.all.frmEdit.style.display=document.all.frmEdit.style.display=="none"?"":"none">
    <select name="select2">
    </select>
    </body>
      

  3.   

    不明白?看到data="about:<div……了吗?用你的div代替这里的div。然后控制object的显示与隐藏
      

  4.   

    select 的层次很高, 用层是掩盖不了它的, 你可以这样, 在你菜单显示的时候将 select 隐藏(用 visibility 属性), 而菜单收起的时候再将这个 select 显示:
      

  5.   

    to( meizz(梅花雨)):
    但是我的div下的select不确定。怎样知道div下有哪些select呢
      

  6.   

    心云意水的方法很新颖啊。用个object可以挡住select。偶倒想试试。
    原来的什么显示隐藏select还要计算位置,看看是不是重叠了,很麻烦。
    Iframe又牵扯到跨窗口,写的代码一不小心就出现版本不兼容问题,消耗内存资源更不用说,也麻烦。
      

  7.   

    呵呵,试了。确实可行。这个办法目前看来最好。就是可能还要研究一下如何与该Object内的东东们沟通的问题。(函数和变量的流通,呵呵)
      

  8.   

    但是我的div下的select不确定。怎样知道div下有哪些select呢
    这个简单。用个oDiv.children.tags('SELECT')就是div下的select集合。
    这个oDiv就是你的那个div对象
      

  9.   

    我在研究如何跟object的data属性(URL)里面的东东进行交互(不是交合:-)))因为倘是偶,这个data属性里面的div里面要放的东西可就多了去了。
      

  10.   

    大家说说,如果把这个data直接指向一个正而八经的的http,就是htm啦,是不是要比iframe好点呢?
    Predefined Protocols  Internet Development Index --------------------------------------------------------------------------------Microsoft&reg; Internet Explorer implements various protocols that can be used to identify certain information. A protocol is a set of rules and standards that enables two or more computers to communicate. Note   'about:' is not a protocol as it does not enable two or more computers to communicate (see earlier definition). No data is being sent to the client — the client is simply being instructed to display a certain pre-defined set of information. 
    Predefined Protocols
    file
    Opens a file on a local or network drive. ftp
    Opens a file transfer session with the specified site address.gopher
    Opens a gopher session with the specified site address. http
    Opens a hypertext transfer session with the specified site address.https
    Opens a secure hypertext transfer session with the specified site address.javascript
    Specifies that the URL is JavaScript code. mailto
    Opens a client's e-mail system.news
    Opens a newsgroup in the client's default news application. res
    Specifies a resource that will be obtained from a module. telnet
    Opens a terminal login session with the default Telnet client.view-source
    Opens a Web page in the client's default HTML editor.