banke 发表于 2009-5-5 10:44:53

进弹与退弹代码,xp sp2下,vista下都可弹

进弹与退弹代码,xp sp2下,vista下都可弹
进弹和退弹代码可灵活运用,这个js文件
加上去之后对百度还未发现对SEO会有影响,也不会被google判定为恶意网址

步骤
1.把下面代码保存为js文件,把http://www.123.com替换成你的网址
2.在网站中调用js文件:<SCRIPT language=javascript src="xx.js"></SCRIPT>

进弹代码:


CODE:
if(parent.window.opener)
parent.window.opener.location='http://www.123.com';


退弹代码,windows xp sp2 也照弹不误


CODE:

// Exit Begin
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.123.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);");
}

banke 发表于 2009-5-5 10:47:41

进弹1定可以用,不管xp还是vista,还是2008.还是98,不管是ie6.7,还是firefox,等等。

banke 发表于 2009-5-5 10:48:17

测试了下,我站300人在线,两个同时有150左右进来

ustbhong 发表于 2009-5-5 16:33:52

收藏了,留着以后用,谢谢

nod32 发表于 2009-5-6 08:56:24

刷pv可以用用
页: [1]
查看完整版本: 进弹与退弹代码,xp sp2下,vista下都可弹