- UID
- 53707
- 帖子
- 6
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2007-4-5
|
一个网站上有这么一段JS
-
- <!-- 新浪广告 2008-8-15 -->
- <style type="text/css">
- .closead{width:300px;height:18px;font-size:14px;font-weight:bold;text-align:right;CURSOR: hand;}
- </style>
- <script type="text/javascript">
- ad4all_url="http://2008.sina.com.cn/v/0808/171/86/index.html"; //广告地址
- document.writeln('<div id="ShowAD" style="position:absolute; z-index: 100;"> ');
- document.writeln('<div class="closead" onclick="closead();">关闭 </div>');
- document.writeln(' <iframe scrolling="no" style="width:300px;height:200px;" frameborder="0" src="'+ad4all_url+'"></iframe>');
- document.writeln('</div>');
- var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
- var adst = document.getElementById("ShowAD").style;
- adst.top = ( bodyfrm.clientHeight - 218 ) + "px";
- adst.left = ( bodyfrm.clientWidth - 300 ) + "px";
- function moveR() {
- adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 218 ) + "px";
- adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - 300 ) + "px";
- }
- setInterval("moveR();", 80);
- function closead()
- {
- adst.display='none';
- }
- </script>
复制代码 |
|