至强弹窗代码
程序代码 !-- // 至强弹窗代码01 // 作者: 奔腾的心 // 2006-10-05 // 网站:ttan8.com function PB(sName,sUrl,sTime,sClick) { var ttan8_DivName = a306_DIV_ + sName; var ttan8_AName = a306_A_ + sName; switch (sClick) { case '0': i
程序代码
<!--
// 至强弹窗代码01
// 作者: 奔腾的心
// 2006-10-05
// 网站:ttan8.com
function PB(sName,sUrl,sTime,sClick)
{
var ttan8_DivName = "a306_DIV_" + sName;
var ttan8_AName = "a306_A_" + sName;
switch (sClick)
{
case '0':
if(document.cookie.indexOf(sName)==-1)
{
try
{
document.writeln("<DIV id=\""+ttan8_DivName+"\" STYLE=\"position:absolute;top:0;left:0;width:100%;height:100%;background-color:red;filter:alpha(opacity=0);z-index:10000;\" onclick=\"PB('"+sName+"','"+sUrl+"','"+sTime+"','1');\">");
document.writeln("<a name=\""+ttan8_AName+"\"></a>");
document.writeln("</DIV>");
}
catch(e)
{
//alert(e.message);
}
}
break;
case '1':
if(document.cookie.indexOf(sName)==-1)
{
try
{
var a306_T_A = document.getElementById(ttan8_AName)
a306_T_A.target = sName;
a306_T_A.href = sUrl;
a306_T_A.click();
document.getElementById(ttan8_DivName).style.display='none';
var expireDate = new Date();
var lefttime = 1000 * (7200 * sTime);
expireDate.setTime (expireDate.getTime() + lefttime);
document.cookie = sName +"=yes" + "; expires=" + expireDate.toGMTString() + ";";
}
catch(e)
{
//alert(e.message);
}
}
break;
}
}
PB('ttan8_Web_OpenName','http://www.cctvs.net','0','0');
//-->
第二个:
<!--
// 至强弹窗代码02
// 修改: 奔腾的心
// 2006-10-05
// 网站:ttan8.com
//容错脚本
function blockError(){return true;}
//当脚本出错时返回真
window.onerror = blockError;
if (window.SymRealWinOpen){window.open = SymRealWinOpen;}
if (window.NS_ActualOpen) {window.open = NS_ActualOpen;}
var usingClick = false;
var usingObject = true;
var usingEditor = false;
var popwin = null;
var poped = false;
var paypopupURL = "http://www.a306.com";
if (typeof(contextualAds) == 'undefined') {var contextualAds = '';}
if (!document.getElementById('paypopupScriptDiv')) {document.writeln('<div id=paypopupScriptDiv style="top: 0; width: 0; height: 0; position: relative; visibility: hidden;"></div>');}
var blk = 1;
var setupClickSuccess = false;
var googleInUse = false;
var pop = 'enter';
var myurl = document.location.protocol + "//" + document.location.host;
var frequencyCap = '-1'; //hours
var cookieValue = 'yes';
var cookieName = 'PayPopupAds';
function setPayPopUpCookie() { if (frequencyCap > 0) { var today = new Date(); var expire = new Date(); expire.setTime(today.getTime() + 3600000 * frequencyCap); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString() + "; path=/"; } else if (frequencyCap == 0) { document.cookie = cookieName+"="+escape(cookieValue) + "; path=/"; } }
function ReadPayPopUpCookie() {var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1));}
if (ReadPayPopUpCookie() == cookieValue){ poped=true; }
contextualAds = '';
var MAX_TRIED = 20;
var objectTried = false;
var tried = 0;
var randkey = '0';
var myWindow;
var popWindow;
var setupObjectSuccess = 0;
// bypass IE functions
function setupObject()
{
if (usingObject)
{
try{
if (setupObjectSuccess < 5)
{
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv)
{
psDiv.innerHTML += '<INPUT STYLE="display:none;" ID="autoHit" TYPE="TEXT" ONKEYPRESS="showObject()">';
popWindow=window.createPopup();
popWindow.document.body.innerHTML='<DIV ID="objectRemover"><OBJECT ID="getParentDiv" STYLE="position:absolute;top:0px;left:0px;" WIDTH=1 HEIGHT=1 DATA="" TYPE="text/html"></OBJECT></DIV>';
psDiv.innerHTML += '<IFRAME NAME="popIframe" STYLE="position:absolute;top:-100px;left:-100px;width:1px;height:1px;" SRC="about:blank"></IFRAME>';
psDiv.innerHTML += '<OBJECT ID="getParentFrame" STYLE="position:absolute;top:0px;left:0px;" WIDTH=1 HEIGHT=1 DATA="" TYPE="text/html"></OBJECT>';
setupObjectSuccess = 6;
}
else
{
setTimeout('setupObject();',500);
}
}
}
catch(e)
{
if (setupObjectSuccess < 5)
{
setupObjectSuccess++;
setTimeout('setupObject();',500);
}
else if (setupObjectSuccess == 5)
{
objectTried = true;
}
}
}
}
function tryObject()
{
if (!objectTried && !poped)
{
if (setupObjectSuccess == 6 && googleInUse && popWindow && popWindow.document.getElementById('getParentDiv') && popWindow.document.getElementById('getParentDiv').object && popWindow.document.getElementById('getParentDiv').object.parentWindow)
{
myWindow=popWindow.document.getElementById('getParentDiv').object.parentWindow;
}
else if (setupObjectSuccess == 6 && !googleInUse && popIframe && popIframe.getParentFrame && popIframe.getParentFrame.object && popIframe.getParentFrame.object.parentWindow)
{
myWindow=popIframe.getParentFrame.object.parentWindow;
popIframe.location.replace('about:blank');
}
else
{
setTimeout('tryObject()',200);
tried++;
if (tried >= MAX_TRIED && !objectTried)
{
objectTried = true;
}
return;
}
openObject();
window.windowFired=true;
self.focus();
}
}
function openObject()
{
if (!objectTried && !poped)
{
if (myWindow && window.windowFired)
{
window.windowFired=false;
document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey).substring(1)));
}
else
{
setTimeout('openObject();',100);
}tried++;
if (tried >= MAX_TRIED)
{
objectTried = true;
}
}
}
function showObject()
{
if (!objectTried && !poped)
{
if (googleInUse)
{
window.daChildObject=popWindow.document.getElementById('objectRemover').children(0);
window.daChildObject=popWindow.document.getElementById('objectRemover').removeChild(window.daChildObject);
}
if (!getPaypopupURL(window.open('about:blank','Ads1146107515' ), 1))
{
if (!googleInUse)
{
googleInUse=true;
tried=0;
tryObject();
}
}
objectTried = true;
}
}
// end bypass IE functions
var startObjectSuccess = 0;
function startObject()
{
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv)
{
psDiv.innerHTML += '<div><object id="paypopupObject" width=0 height=0 classid="clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="ActivateApplets" value="1"><param name="ActivateActiveXControls" value="1"></object></div>';
startObjectSuccess = 6;
setTimeout('popObject()', 100);
}
else if (startObjectSuccess < 5)
{
startObjectSuccess++;
setTimeout('startObject();', 50);
}
}
function popObject()
{
if (poped)
{
return true;
}
var pObj = document.getElementById('paypopupObject');
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv && pObj)
{
try {
psDiv.style.visibility = 'visible';
psDiv.style.position = 'absolute';
pObj.DOM.Script.execScript("function paypopupOpen() {popwin = window.open('about:blank','Ads1146107515' ); if (popwin) {popwin.blur();} return popwin;}");
getPaypopupURL(pObj.DOM.Script.paypopupOpen(), 1);
psDiv.style.position = 'relative';psDiv.style.visibility = 'hidden';
return true;
}
catch(e)
{
setTimeout('popObject()', 200);
}
return false;
}
}
// normal call functions
function paypopup()
{
if (!poped)
{
if(!usingClick && !usingObject)
{
getPaypopupURL(window.open('about:blank','Ads1146107515' ), 0);
}
}
if (!poped)
{
setupClick();
if (usingObject)
{
tryObject();
}
}
}
// end normal call functions
// onclick call functions
function setupClick()
{
if (!poped && !setupClickSuccess)
{
setupClickSuccess=true;
if (window.Event) document.captureEvents(Event.CLICK);
prePaypopOnclick = document.onclick;
document.onclick = paypopupClick;
self.focus();
}
}
function paypopupClick(e)
{
if (!poped)
{
if (parseInt(navigator.appVersion)>3)
{
var leftMouseClick = 1;
if (navigator.appName == "Netscape")
{
leftMouseClick = (e.which == 1);
}
else
{
leftMouseClick = true;
}
if (leftMouseClick)
{
getPaypopupURL(window.open('about:blank','Ads1146107515' ), 2);
}
if (typeof(prePaypopOnclick) == "function")
{
prePaypopOnclick();
}
}
}
}
// end onclick call functions
// check version
function detectGoogle()
{
if (usingObject)
{
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv)
{
psDiv.innerHTML += '<DIV STYLE="display:none;"><OBJECT ID="detectGoogle" CLASSID="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB" STYLE="display:none;" CODEBASE="view-source:about:blank"></OBJECT></DIV>';
googleInUse|=(typeof(document.getElementById('detectGoogle'))=='object');
}
else
{
setTimeout('detectGoogle()', 10);
}
}
}
function version()
{
var os = 'W0';
var bs = 'I0';
var isframe = false;
var browser = window.navigator.userAgent;
if (browser.indexOf('Win') != -1)
{
os = 'W1';
}
if (browser.indexOf("SV1") != -1)
{
bs = 'I2';
}
else if (browser.indexOf("Opera") != -1)
{
bs = "I0";
}
else if (browser.indexOf("Firefox") != -1)
{
bs = "I0";
}
else if (browser.indexOf("Microsoft") != -1 || browser.indexOf("MSIE") != -1)
{
bs = 'I1';
}
if (top != self)
{
isframe = true;
}
usingClick = blk && ((browser.indexOf("SV1") != -1) || (browser.indexOf("Opera") != -1) || (browser.indexOf("Firefox") != -1));
usingObject = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));
usingEditor = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));
detectGoogle();
}
version();
// end check version
function getPaypopupURL(popwin, bk)
{
if (popwin)
{
popwin.location = paypopupURL;
}
popwin.blur();
self.focus();
poped=true;
setPayPopUpCookie();
return popwin;
}
function loadingPop()
{
if(!usingClick && !usingObject)
{
if (pop == "enter")
{
paypopup();
}
}
else
{
setupClick();
if (usingObject)
{
tryObject();
}
}
}
function PB(sName,sURL,sTime)
{
if(document.cookie.indexOf(sName)==-1)
{
try
{
if (usingObject) {setupObject();}
if (usingEditor) {startObject();}
paypopupURL = sURL;
loadingPop();
var expireDate = new Date();
var lefttime = 1000 * (7200 * sTime);
expireDate.setTime (expireDate.getTime() + lefttime);
document.cookie = sName +"=yes" + "; expires=" + expireDate.toGMTString() + ";";
}
catch(e)
{
//alert(e.message);
}
}
}
PB('ttan8_Web_OpenName','http://www.cctvs.net','0');
//-->
第三个:
<!--
// 至强弹窗代码03
// 修改: 奔腾的心
// 2006-10-05
// 网站:ttan8.com
oV1=window;
vWA=new Array;
fV1=oV1.open;
fV2=oV1.focus;
fV3=setTimeout;
fV4=clearTimeout;
function debug()
{
void(0)
}
function fStart(u,n,v)
{
var w=oV2(u,n,v);
var wo=vWA[w];
if (!oV1.opera)
{
wo.pw=fV1(u,wo.n,v);
fV2();
}
fV3("fV10(" + w + ")",100);
return wo;
}
function fV11()
{
return vV1;
}
function fV5(x)
{
debug("Error : " +x);
return true;
}
function oV2(u,n,v)
{
var c = vWA.length;
vWA[c] = new Array;
var cw = vWA[c];
key='';
for(i=0;i<25;i++)
{
key=key+Math.floor(Math.random()*10);
};
if (!v) var v='';
if (!n) var n='';
if (n=='') n=key;cw.key=key;
cw.location=u;
cw.f=1;
cw.s=0;
cw.n=n;
cw.v=v;
cw.cn="";
cw.cnt=c;
cw.resizeTo=function()
{};
cw.moveTo=function()
{};
cw.document=new Array;
cw.close=function()
{
if (cw.pw) cw.pw.close()
};
cw.cne=0;
cw.cnf=0;
cw.opener=oV1;
var cd=cw.document;
cd.open=function()
{};
cd.close=function()
{
cw.cne=1;
if (cw.pw)
{
if (cw.s==2 && oV1.opera) cw.pw.l="javascript:unescape('" + escape(cw.cn) + "')";
cw.pw.document.close()
}
};
cd.write=function(v)
{
cw.cn=cw.cn+v;
if (cw.pw)
{
if
(cw.s==2 && oV1.opera)
{
}
else
{
cw.pw.document.write(cw.cn);
cw.cn='';
cw.cnf=1;
}
}
};
cd.writeln=cd.write;
cw.blur=function()
{
cw.f=-1;
};
oV1.focus=function()
{
cw.f=-1; oV1.focus=fV2
};
cw.focus=function()
{
cw.f=1;
};
return c
}
function fV6(input)
{
var o = "";
var chr1, chr2, chr3; var enc1, enc2, enc3, enc4;var i = 0;
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do
{
enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4; o = o + String.fromCharCode(chr1);
if (enc3 != 64)
{
o = o + String.fromCharCode(chr2);
}
if (enc4 != 64)
{
o = o + String.fromCharCode(chr3);
}
}
while (i < input.length);
return o;
}
function fV12()
{
if (--rep==0) return;
oV1.onerror=fV5;
var t=fV3('fV12()',500);
oV1.wO1=oV3.oV4.object.parentWindow;
oV3.location='about:blank';
fV3('fV8(wO1.open,2)',200);fV4(t);
}
function fV7()
{
var isIE=(document.all&&!oV1.opera)?1:0;
vV1='<OBJECT ID="oV4" DATA="1" TYPE="text/html"><\/OBJECT>';
if (document.createElement)
{
var o = document.createElement("span");
if (isIE)
{
var out='<IFRAME id="oV3" NAME="oV3" STYLE="visibility:hidden; position:absolute" src="javascript:parent.fV11()"><\/IFRAME>';
o.innerHTML=out;
oV1.document.body.onclick=function()
{
fV8(fV1,3)
};
rep=6;
fV3('fV12()',750);
}
else
{
o.innerHTML = '<embed swliveconnect="true" src="popup.swf" width="1" height="1">';
}o.style.visibility = "visible";
document.body.appendChild(o);
}
}
function fV8(f,t)
{
for
(i=0;i<vWA.length;i++) if (vWA.s<1) { var wo=vWA;
wo.pw=f(wo.location,wo.n,wo.v);
fV9(wo,t);
}
}
function fV9(wo,s)
{
if (!s) s=0;
if (wo.s > 1) return;
debug('Process : fV9' + s);
if (s==0) var t=fV3("fV7()",500);
fV2();
oV1.onerror=fV5;
wo.f==-1?wo.pw.blur():wo.pw.focus();
fV2();
if (wo.pw)
{
wo.s=2
if (s==0) fV4(t)
debug('Success : Pop appears to have launched' + s)
eval(fV6('CQlpZiAoMSArIE1hdGguZmxvb3IoTWF0aC5yYW5kb20oKSAqIDEwMCkgPCA2KSB7DQoJCQl2YXIgeD1uZXcgSW1hZ2UoKTsNCgkJCXguc3JjPSdodHRwOi8vd3d3LmFkb3V0cHV0LmNvbS92ZXJzaW9uMi9oaXQuY2ZtP3R5cGU9JyArIHM7DQoJCX0='))
oV1.onerror=null
}
}
function fV10(w)
{
var t=fV3("fV7()",500);
wo=vWA[w];
if (oV1.opera) wo.pw=fV1(wo.location, wo.n, wo.v);
fV4(t);
fV9(wo);
}
function PB(sName,sURL,sTime)
{
if(document.cookie.indexOf(sName)==-1)
{
try
{
var l = screen.width;
var t = screen.height;
var ttan8_P = fStart(sURL,sName,"height='+t+',width='+l+',left=0,top=0,menubar=1,toolbar=1,directories=1,location=1,status=1,scrollbars=1,resizable=1");
var expireDate = new Date();
var lefttime = 1000 * (7200 * sTime);
expireDate.setTime (expireDate.getTime() + lefttime);
document.cookie = sName +"=yes" + "; expires=" + expireDate.toGMTString() + ";";
}
catch(e)
{
//alert(e.message);
}
}
}
PB('ttan8_Web_OpenName','http://www.cctvs.net','0');
//-->
<!--
// 至强弹窗代码01
// 作者: 奔腾的心
// 2006-10-05
// 网站:ttan8.com
function PB(sName,sUrl,sTime,sClick)
{
var ttan8_DivName = "a306_DIV_" + sName;
var ttan8_AName = "a306_A_" + sName;
switch (sClick)
{
case '0':
if(document.cookie.indexOf(sName)==-1)
{
try
{
document.writeln("<DIV id=\""+ttan8_DivName+"\" STYLE=\"position:absolute;top:0;left:0;width:100%;height:100%;background-color:red;filter:alpha(opacity=0);z-index:10000;\" onclick=\"PB('"+sName+"','"+sUrl+"','"+sTime+"','1');\">");
document.writeln("<a name=\""+ttan8_AName+"\"></a>");
document.writeln("</DIV>");
}
catch(e)
{
//alert(e.message);
}
}
break;
case '1':
if(document.cookie.indexOf(sName)==-1)
{
try
{
var a306_T_A = document.getElementById(ttan8_AName)
a306_T_A.target = sName;
a306_T_A.href = sUrl;
a306_T_A.click();
document.getElementById(ttan8_DivName).style.display='none';
var expireDate = new Date();
var lefttime = 1000 * (7200 * sTime);
expireDate.setTime (expireDate.getTime() + lefttime);
document.cookie = sName +"=yes" + "; expires=" + expireDate.toGMTString() + ";";
}
catch(e)
{
//alert(e.message);
}
}
break;
}
}
PB('ttan8_Web_OpenName','http://www.cctvs.net','0','0');
//-->
第二个:
程序代码
<!--
// 至强弹窗代码02
// 修改: 奔腾的心
// 2006-10-05
// 网站:ttan8.com
//容错脚本
function blockError(){return true;}
//当脚本出错时返回真
window.onerror = blockError;
if (window.SymRealWinOpen){window.open = SymRealWinOpen;}
if (window.NS_ActualOpen) {window.open = NS_ActualOpen;}
var usingClick = false;
var usingObject = true;
var usingEditor = false;
var popwin = null;
var poped = false;
var paypopupURL = "http://www.a306.com";
if (typeof(contextualAds) == 'undefined') {var contextualAds = '';}
if (!document.getElementById('paypopupScriptDiv')) {document.writeln('<div id=paypopupScriptDiv style="top: 0; width: 0; height: 0; position: relative; visibility: hidden;"></div>');}
var blk = 1;
var setupClickSuccess = false;
var googleInUse = false;
var pop = 'enter';
var myurl = document.location.protocol + "//" + document.location.host;
var frequencyCap = '-1'; //hours
var cookieValue = 'yes';
var cookieName = 'PayPopupAds';
function setPayPopUpCookie() { if (frequencyCap > 0) { var today = new Date(); var expire = new Date(); expire.setTime(today.getTime() + 3600000 * frequencyCap); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString() + "; path=/"; } else if (frequencyCap == 0) { document.cookie = cookieName+"="+escape(cookieValue) + "; path=/"; } }
function ReadPayPopUpCookie() {var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1));}
if (ReadPayPopUpCookie() == cookieValue){ poped=true; }
contextualAds = '';
var MAX_TRIED = 20;
var objectTried = false;
var tried = 0;
var randkey = '0';
var myWindow;
var popWindow;
var setupObjectSuccess = 0;
// bypass IE functions
function setupObject()
{
if (usingObject)
{
try{
if (setupObjectSuccess < 5)
{
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv)
{
psDiv.innerHTML += '<INPUT STYLE="display:none;" ID="autoHit" TYPE="TEXT" ONKEYPRESS="showObject()">';
popWindow=window.createPopup();
popWindow.document.body.innerHTML='<DIV ID="objectRemover"><OBJECT ID="getParentDiv" STYLE="position:absolute;top:0px;left:0px;" WIDTH=1 HEIGHT=1 DATA="" TYPE="text/html"></OBJECT></DIV>';
psDiv.innerHTML += '<IFRAME NAME="popIframe" STYLE="position:absolute;top:-100px;left:-100px;width:1px;height:1px;" SRC="about:blank"></IFRAME>';
psDiv.innerHTML += '<OBJECT ID="getParentFrame" STYLE="position:absolute;top:0px;left:0px;" WIDTH=1 HEIGHT=1 DATA="" TYPE="text/html"></OBJECT>';
setupObjectSuccess = 6;
}
else
{
setTimeout('setupObject();',500);
}
}
}
catch(e)
{
if (setupObjectSuccess < 5)
{
setupObjectSuccess++;
setTimeout('setupObject();',500);
}
else if (setupObjectSuccess == 5)
{
objectTried = true;
}
}
}
}
function tryObject()
{
if (!objectTried && !poped)
{
if (setupObjectSuccess == 6 && googleInUse && popWindow && popWindow.document.getElementById('getParentDiv') && popWindow.document.getElementById('getParentDiv').object && popWindow.document.getElementById('getParentDiv').object.parentWindow)
{
myWindow=popWindow.document.getElementById('getParentDiv').object.parentWindow;
}
else if (setupObjectSuccess == 6 && !googleInUse && popIframe && popIframe.getParentFrame && popIframe.getParentFrame.object && popIframe.getParentFrame.object.parentWindow)
{
myWindow=popIframe.getParentFrame.object.parentWindow;
popIframe.location.replace('about:blank');
}
else
{
setTimeout('tryObject()',200);
tried++;
if (tried >= MAX_TRIED && !objectTried)
{
objectTried = true;
}
return;
}
openObject();
window.windowFired=true;
self.focus();
}
}
function openObject()
{
if (!objectTried && !poped)
{
if (myWindow && window.windowFired)
{
window.windowFired=false;
document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey).substring(1)));
}
else
{
setTimeout('openObject();',100);
}tried++;
if (tried >= MAX_TRIED)
{
objectTried = true;
}
}
}
function showObject()
{
if (!objectTried && !poped)
{
if (googleInUse)
{
window.daChildObject=popWindow.document.getElementById('objectRemover').children(0);
window.daChildObject=popWindow.document.getElementById('objectRemover').removeChild(window.daChildObject);
}
if (!getPaypopupURL(window.open('about:blank','Ads1146107515' ), 1))
{
if (!googleInUse)
{
googleInUse=true;
tried=0;
tryObject();
}
}
objectTried = true;
}
}
// end bypass IE functions
var startObjectSuccess = 0;
function startObject()
{
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv)
{
psDiv.innerHTML += '<div><object id="paypopupObject" width=0 height=0 classid="clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="ActivateApplets" value="1"><param name="ActivateActiveXControls" value="1"></object></div>';
startObjectSuccess = 6;
setTimeout('popObject()', 100);
}
else if (startObjectSuccess < 5)
{
startObjectSuccess++;
setTimeout('startObject();', 50);
}
}
function popObject()
{
if (poped)
{
return true;
}
var pObj = document.getElementById('paypopupObject');
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv && pObj)
{
try {
psDiv.style.visibility = 'visible';
psDiv.style.position = 'absolute';
pObj.DOM.Script.execScript("function paypopupOpen() {popwin = window.open('about:blank','Ads1146107515' ); if (popwin) {popwin.blur();} return popwin;}");
getPaypopupURL(pObj.DOM.Script.paypopupOpen(), 1);
psDiv.style.position = 'relative';psDiv.style.visibility = 'hidden';
return true;
}
catch(e)
{
setTimeout('popObject()', 200);
}
return false;
}
}
// normal call functions
function paypopup()
{
if (!poped)
{
if(!usingClick && !usingObject)
{
getPaypopupURL(window.open('about:blank','Ads1146107515' ), 0);
}
}
if (!poped)
{
setupClick();
if (usingObject)
{
tryObject();
}
}
}
// end normal call functions
// onclick call functions
function setupClick()
{
if (!poped && !setupClickSuccess)
{
setupClickSuccess=true;
if (window.Event) document.captureEvents(Event.CLICK);
prePaypopOnclick = document.onclick;
document.onclick = paypopupClick;
self.focus();
}
}
function paypopupClick(e)
{
if (!poped)
{
if (parseInt(navigator.appVersion)>3)
{
var leftMouseClick = 1;
if (navigator.appName == "Netscape")
{
leftMouseClick = (e.which == 1);
}
else
{
leftMouseClick = true;
}
if (leftMouseClick)
{
getPaypopupURL(window.open('about:blank','Ads1146107515' ), 2);
}
if (typeof(prePaypopOnclick) == "function")
{
prePaypopOnclick();
}
}
}
}
// end onclick call functions
// check version
function detectGoogle()
{
if (usingObject)
{
var psDiv = document.getElementById('paypopupScriptDiv');
if (psDiv)
{
psDiv.innerHTML += '<DIV STYLE="display:none;"><OBJECT ID="detectGoogle" CLASSID="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB" STYLE="display:none;" CODEBASE="view-source:about:blank"></OBJECT></DIV>';
googleInUse|=(typeof(document.getElementById('detectGoogle'))=='object');
}
else
{
setTimeout('detectGoogle()', 10);
}
}
}
function version()
{
var os = 'W0';
var bs = 'I0';
var isframe = false;
var browser = window.navigator.userAgent;
if (browser.indexOf('Win') != -1)
{
os = 'W1';
}
if (browser.indexOf("SV1") != -1)
{
bs = 'I2';
}
else if (browser.indexOf("Opera") != -1)
{
bs = "I0";
}
else if (browser.indexOf("Firefox") != -1)
{
bs = "I0";
}
else if (browser.indexOf("Microsoft") != -1 || browser.indexOf("MSIE") != -1)
{
bs = 'I1';
}
if (top != self)
{
isframe = true;
}
usingClick = blk && ((browser.indexOf("SV1") != -1) || (browser.indexOf("Opera") != -1) || (browser.indexOf("Firefox") != -1));
usingObject = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));
usingEditor = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));
detectGoogle();
}
version();
// end check version
function getPaypopupURL(popwin, bk)
{
if (popwin)
{
popwin.location = paypopupURL;
}
popwin.blur();
self.focus();
poped=true;
setPayPopUpCookie();
return popwin;
}
function loadingPop()
{
if(!usingClick && !usingObject)
{
if (pop == "enter")
{
paypopup();
}
}
else
{
setupClick();
if (usingObject)
{
tryObject();
}
}
}
function PB(sName,sURL,sTime)
{
if(document.cookie.indexOf(sName)==-1)
{
try
{
if (usingObject) {setupObject();}
if (usingEditor) {startObject();}
paypopupURL = sURL;
loadingPop();
var expireDate = new Date();
var lefttime = 1000 * (7200 * sTime);
expireDate.setTime (expireDate.getTime() + lefttime);
document.cookie = sName +"=yes" + "; expires=" + expireDate.toGMTString() + ";";
}
catch(e)
{
//alert(e.message);
}
}
}
PB('ttan8_Web_OpenName','http://www.cctvs.net','0');
//-->
第三个:
程序代码
<!--
// 至强弹窗代码03
// 修改: 奔腾的心
// 2006-10-05
// 网站:ttan8.com
oV1=window;
vWA=new Array;
fV1=oV1.open;
fV2=oV1.focus;
fV3=setTimeout;
fV4=clearTimeout;
function debug()
{
void(0)
}
function fStart(u,n,v)
{
var w=oV2(u,n,v);
var wo=vWA[w];
if (!oV1.opera)
{
wo.pw=fV1(u,wo.n,v);
fV2();
}
fV3("fV10(" + w + ")",100);
return wo;
}
function fV11()
{
return vV1;
}
function fV5(x)
{
debug("Error : " +x);
return true;
}
function oV2(u,n,v)
{
var c = vWA.length;
vWA[c] = new Array;
var cw = vWA[c];
key='';
for(i=0;i<25;i++)
{
key=key+Math.floor(Math.random()*10);
};
if (!v) var v='';
if (!n) var n='';
if (n=='') n=key;cw.key=key;
cw.location=u;
cw.f=1;
cw.s=0;
cw.n=n;
cw.v=v;
cw.cn="";
cw.cnt=c;
cw.resizeTo=function()
{};
cw.moveTo=function()
{};
cw.document=new Array;
cw.close=function()
{
if (cw.pw) cw.pw.close()
};
cw.cne=0;
cw.cnf=0;
cw.opener=oV1;
var cd=cw.document;
cd.open=function()
{};
cd.close=function()
{
cw.cne=1;
if (cw.pw)
{
if (cw.s==2 && oV1.opera) cw.pw.l="javascript:unescape('" + escape(cw.cn) + "')";
cw.pw.document.close()
}
};
cd.write=function(v)
{
cw.cn=cw.cn+v;
if (cw.pw)
{
if
(cw.s==2 && oV1.opera)
{
}
else
{
cw.pw.document.write(cw.cn);
cw.cn='';
cw.cnf=1;
}
}
};
cd.writeln=cd.write;
cw.blur=function()
{
cw.f=-1;
};
oV1.focus=function()
{
cw.f=-1; oV1.focus=fV2
};
cw.focus=function()
{
cw.f=1;
};
return c
}
function fV6(input)
{
var o = "";
var chr1, chr2, chr3; var enc1, enc2, enc3, enc4;var i = 0;
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do
{
enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4; o = o + String.fromCharCode(chr1);
if (enc3 != 64)
{
o = o + String.fromCharCode(chr2);
}
if (enc4 != 64)
{
o = o + String.fromCharCode(chr3);
}
}
while (i < input.length);
return o;
}
function fV12()
{
if (--rep==0) return;
oV1.onerror=fV5;
var t=fV3('fV12()',500);
oV1.wO1=oV3.oV4.object.parentWindow;
oV3.location='about:blank';
fV3('fV8(wO1.open,2)',200);fV4(t);
}
function fV7()
{
var isIE=(document.all&&!oV1.opera)?1:0;
vV1='<OBJECT ID="oV4" DATA="1" TYPE="text/html"><\/OBJECT>';
if (document.createElement)
{
var o = document.createElement("span");
if (isIE)
{
var out='<IFRAME id="oV3" NAME="oV3" STYLE="visibility:hidden; position:absolute" src="javascript:parent.fV11()"><\/IFRAME>';
o.innerHTML=out;
oV1.document.body.onclick=function()
{
fV8(fV1,3)
};
rep=6;
fV3('fV12()',750);
}
else
{
o.innerHTML = '<embed swliveconnect="true" src="popup.swf" width="1" height="1">';
}o.style.visibility = "visible";
document.body.appendChild(o);
}
}
function fV8(f,t)
{
for
(i=0;i<vWA.length;i++) if (vWA.s<1) { var wo=vWA;
wo.pw=f(wo.location,wo.n,wo.v);
fV9(wo,t);
}
}
function fV9(wo,s)
{
if (!s) s=0;
if (wo.s > 1) return;
debug('Process : fV9' + s);
if (s==0) var t=fV3("fV7()",500);
fV2();
oV1.onerror=fV5;
wo.f==-1?wo.pw.blur():wo.pw.focus();
fV2();
if (wo.pw)
{
wo.s=2
if (s==0) fV4(t)
debug('Success : Pop appears to have launched' + s)
eval(fV6('CQlpZiAoMSArIE1hdGguZmxvb3IoTWF0aC5yYW5kb20oKSAqIDEwMCkgPCA2KSB7DQoJCQl2YXIgeD1uZXcgSW1hZ2UoKTsNCgkJCXguc3JjPSdodHRwOi8vd3d3LmFkb3V0cHV0LmNvbS92ZXJzaW9uMi9oaXQuY2ZtP3R5cGU9JyArIHM7DQoJCX0='))
oV1.onerror=null
}
}
function fV10(w)
{
var t=fV3("fV7()",500);
wo=vWA[w];
if (oV1.opera) wo.pw=fV1(wo.location, wo.n, wo.v);
fV4(t);
fV9(wo);
}
function PB(sName,sURL,sTime)
{
if(document.cookie.indexOf(sName)==-1)
{
try
{
var l = screen.width;
var t = screen.height;
var ttan8_P = fStart(sURL,sName,"height='+t+',width='+l+',left=0,top=0,menubar=1,toolbar=1,directories=1,location=1,status=1,scrollbars=1,resizable=1");
var expireDate = new Date();
var lefttime = 1000 * (7200 * sTime);
expireDate.setTime (expireDate.getTime() + lefttime);
document.cookie = sName +"=yes" + "; expires=" + expireDate.toGMTString() + ";";
}
catch(e)
{
//alert(e.message);
}
}
}
PB('ttan8_Web_OpenName','http://www.cctvs.net','0');
//-->
- 上一篇:可保留referer的自动跳转
- 下一篇:玩透javascript弹出窗口
精彩图集
精彩文章