有是这种问题??
<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>
<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>
<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>
但是我的div下的select不确定。怎样知道div下有哪些select呢
原来的什么显示隐藏select还要计算位置,看看是不是重叠了,很麻烦。
Iframe又牵扯到跨窗口,写的代码一不小心就出现版本不兼容问题,消耗内存资源更不用说,也麻烦。
这个简单。用个oDiv.children.tags('SELECT')就是div下的select集合。
这个oDiv就是你的那个div对象
Predefined Protocols Internet Development Index --------------------------------------------------------------------------------Microsoft® 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.