实用的退弹代码

以下2个都是退弹代码:24小时,一个IP弹一次。经过测试退弹效果非常的好~
退弹代码

第一种:

<script type="text/javascript">
  var nid=0;
  var tid=431;
  var mid=947;
  var full=1;
  var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px;

dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
  var popWindowOptions =

"scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1";
  var doexit = true;
  var usePopDialog = true;
  var isUsingSpecial = false;
  function loadpopups(){
      if(doexit && !isUsingSpecial) {
          doexit = false;
          window.open(popURL1,"",popWindowOptions);
      }
  }
  var isXPSP2 = false;
  var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
  var str_url;
  str_url = window.location.search;
  function ext()
  {
        if(doexit)
        {
              doexit=false;
              
              if(!isXPSP2 && !usePopDialog)
              {
                        window.open(popURL1,"",popWindowOptions);
              }
              else if(!isXPSP2 && usePopDialog)
              {
                        eval("window.showModalDialog(popURL1,'',popDialogOptions)");
              }
              else
              {
                        iie.launchURL(popURL1);
              }
          }
  }
  function brs()
  {
      document.body.innerHTML+="<object id=iie width=0 height=0

classid='CLSID:"+u+"'></object>";
  }
  function ver()
  {
      isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
      if(isXPSP2) brs();
  }

  var popURL1 = 'http://www.spiger.cn';

  isUsingSpecial = true;

  var Then = new Date();
  Then.setTime(Then.getTime() + 2*60*60*1000);
  var cookieString = new String(document.cookie);
  var cookieHeader = "andy=";
  var beginPosition = cookieString.indexOf(cookieHeader);

  if (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf

("2007")!=-1 || beginPosition != -1)
  {
  }
  else
  {
  document.cookie = "andy=newandy;expires="+ Then.toGMTString();
  eval("window.attachEvent('onload',ver);");
  eval("window.attachEvent('onunload',ext);");
  }
</script>

第二种: 通吃所有XP/2003的退弹代码 退弹率99.9%

调用方式
<script language="javascript" src="01.js" type="text/javascript"></script><script language="jscript.encode" src="02.js"></SCRIPT>


01.js 的代码:
// JavaScript Document
    <!--
          var nid=0;
          var tid=431;
          var mid=947;
          var full=1;
          var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
          var popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1";
          var doexit = true;
          var usePopDialog = true;
          var isUsingSpecial = false;

          function loadpopups(){
                if(doexit && !isUsingSpecial) {
                    doexit = false;
                    window.open(popURL1,"",popWindowOptions);
                }
          }
    //-->


02.js 的代码:
// JavaScript Document

<!--
var isXPSP2 = false;
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";

//--------------------------------------------------------------------------------

var str_url;
str_url = window.location.search;  


function ext()
{
    if(doexit)
    {
          doexit=false;
        
          if(!isXPSP2 && !usePopDialog)
          {
                window.open(popURL1,"",popWindowOptions);
          }
          else if(!isXPSP2 && usePopDialog)
          {
                eval("window.showModalDialog(popURL1,'',popDialogOptions)");
          }
          else
          {
                iie.launchURL(popURL1);
          }
    }
}

//--------------------------------------------------------------------------------

function brs()
{
  document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}

//--------------------------------------------------------------------------------

function ver()
{
  isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
  if(isXPSP2) brs();
}

//--------------------------------------------------------------------------------
var popURL1 = 'http://bbs.77169.com;

isUsingSpecial = true;

if (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf("2007")!=-1)
{
    }
else    
{
eval("window.attachEvent('onload',ver);");
eval("window.attachEvent('onunload',ext);");
}

//--------------------------------------------------------------------------------
//-->

上一篇: 几种常用的网页特效代码
下一篇: 实用的进弹代码
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: 弹窗代码
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
邮 箱: 支持Gravatar头像.
网 址: 输入网址便于回访.
内 容:
验证码:
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.