| 先将如下代码网页文件的区: <script language="javascript"> function closeit() { setTimeout("self.close()",10000) //毫秒 } </script> 然后再在<body>标内加入如:<body > |
| <html> <head> <object id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> <param name="Command" value="Close"> </object> </head> <body > 这个窗口会在10秒过后自动关闭,而且不会出现提示. </body> </html> |
| 在head部记入 <META HTTP-EQUIV="Refresh" c> 其中20为20秒后自动刷新,你可以更改为任意值。 |
| <META HTTP-EQUIV="Refresh" C> |
| 在Layer中再插Iframe 或 Object 设z-Index值 <div z-Index:2><object xxx></object> # 前面 <div z-Index:1><object xxx></object> # 后面 <div id="Layer2" style="position:absolute; top:40;width:400px; height:95px;z-index:2"> height=100% width=100%> <iframe width=0 height=0></iframe> </div> <div id="Layer1" style="position:absolute; top:50;width:200px; height:115px;z-index:1"> <iframe height=100% width=100%></iframe> </div> |
| <a href=javascript:history.back(1)>『返回上一页』</a> |
| <a href=javascript:self.close()>『关闭窗口』</a> |
| <IFRAME ID="iFrame1" SRC="iframe.htm" allowTransparency="true" style="background-color: green"></IFRAME> |