退弹代码





  

演示:http://www.zzsky.cn/effect/content/1662.htm
代码:

 

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
  2. <html xmlns="http://www.w3.org/1999/xhtml">
     
  3. <head>
     
  4. <title>中国站长天空-网页特效-窗口特效-关闭网页弹出指定网址的退弹效果</title>
     
  5. <meta http-equiv="content-type" content="text/html;charset=gb2312">
     
  6. </head>
     
  7. <body>
     
  8. <!--把下面代码加到<body>与</body>之间-->
     
  9. <script language="javascript">
     
  10. <!--
     
  11. function ext()//关闭网页时弹出
     
  12. {
     
  13. if(window.event.clientY<132 || altKey) iie.launchURL(popURL);
     
  14. }
     
  15. function brs()//插入object
     
  16. {
     
  17. document.body.innerHTML+="<object id='iie' width='0' height='0' classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'></object>";
     
  18. }
     
  19. var popURL='http://www.zzsky.cn';//弹出的网址
     
  20. eval("window.attachEvent('onload',brs);");
     
  21. eval("window.attachEvent('onunload',ext);");
     
  22. //-->
     
  23. </script>
     
  24. </body>
     
  25. </html>
  





收藏到:添加到QQ书签 百度收藏 添加到鲜果 新浪ViVi 365Key网摘 天极网摘 我摘 和讯网摘 yahoo 收藏到收客网 Digbuzz我挖网 添加到饭否 挖客 添加到google

文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: 退弹 代码
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.