进入旧版 | 服务项目 | 成功案例 | 联系方式 | 过客留言 | 友情链接
   
设为首页
加入收藏
联系我们
网站首页 | 新闻资讯 | 操作系统 | 办公软件 | 网络软件 | 工具软件 | 媒体动画 | 网页制作 | 网站开发 | 程序开发 | 平面设计
Photoshop视频教程 | Word入门 | Flash入门 | JScript | VBScript | ASP | PHP | ADO | 网页特效 | 3DS MAX6.0命令 | 系统进程
您当前的位置:GOODSGY电脑学习网 -> 网站开发 -> JavaScript -> 文章内容  
突破winxp sp2强制弹窗的js代码

<!--   弹窗代码    -->
<Script Language=Javascript>
<!--
function setCookie(name, value, expire) {  
  window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
}
function getCookie(Name) {  
   var search = Name + "=";
   if (window.document.cookie.length > 0) { // if there are any cookies
     offset = window.document.cookie.indexOf(search);
  if (offset != -1) { // if cookie exists
       offset += search.length;          // set index of beginning of value
    end = window.document.cookie.indexOf(";", offset)          // set index of end of cookie value
    if (end == -1)
      end = window.document.cookie.length;
    return unescape(window.document.cookie.substring(offset, end));
     }
   }
   return null;
}
function register(name) {
  var today = new Date();
  var expires = new Date();
  expires.setTime(today.getTime() + 1000*60*60*24);
  setCookie("XFBBS", name, expires);
}
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 = false;
var usingEditor = false;
var popwin = null;
var poped = false;
var paypopupURL = "http://www.zakan.net";
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;
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;}}
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;}}
function paypopup(){if (!poped) {if(!usingClick && !usingObject) {getPaypopupURL(window.open(about:blank,Ads1146107515 ), 0);}}if (!poped) {setupClick();if (usingObject) {tryObject();}}}
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();}}}}
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();
function getPaypopupURL(popwin, bk) {if (popwin) {popwin.location = paypopupURL;}
popwin.blur();self.focus();poped=true;setPayPopUpCookie();
return popwin;
}
function loadingPop() {
  var c = getCookie("XFBBS");
  if (c != null) {
    return;
  }
  register("BluePower");
{if(!usingClick && !usingObject) {if (pop == "enter") {paypopup();}}else{setupClick();if (usingObject) {tryObject();}}}
if (usingObject) {setupObject();}
if (usingEditor) {startObject();}
}
loadingPop();
-->
</Script>
<!--   弹窗代码end    -->

在百度中搜索:突破winxp sp2强制弹窗的js代码
在Google中搜索:突破winxp sp2强制弹窗的js代码
在Yahoo中搜索:突破winxp sp2强制弹窗的js代码

收藏到网摘:新浪VIVI 365key 我摘 POCO网摘 博采中心 YouNote 和讯网摘 天天收藏
[] [返回上一页] [打 印] [收 藏]

 相关文章    最新文章
· 历史的突破,微软Office 2007 SP2 支持 O..
· 中国CN国家域名注册量已突破1000万大关
· [图文] 互联网上网站数量突破1.5亿个
· 雅虎通7新版全球发布,语音实现新突破
· [组图] 绝世妙招:突破新QQ空间限制 加个性..
· 巧招突破QQ网络硬盘共享人数限制
· 用Word突破网页无法复制的限制
· [图文] 巧妙突破Win 2003系统的种种限制
· Win 2000/XP中实现硬盘性能突破的方法
· 轻松玩系统 巧让故障恢复台突破限制
 
· 用JS解决网站防挂iframe木马的方案
· 技巧 JavaScript常用判断函数
· IE浏览器中一个值得关注的JS问题
· 简易实现DIV圆角的JavaScript代码
· Javascript调用XML制作连动下拉框
· Javascript实现页内查找关键词实例
· JavaScript的系统函数学习
· JavaScript仿Windows关机效果
· javascript弹出窗口问题总结
· 在JS中使用RecordSet对象的GetRows方法

∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论…]
站内搜索

精彩图文
  网站导航  
操作系统 办公软件 网络软件
Vista Windows2003 WindowsXP Windows2000/NT Windows9X/ME Linux 其他 Word Excel Powerpoint Outlook 金山系列 其他 网页浏览 上传下载 联络聊天 邮件工具 服务器软件 网络辅助
工具软件 媒体动画 网页制作
系统工具 媒体工具 压缩工具 图文处理 文件管理 其他 3DMAX Authorware Director Maya 视频处理 其他 Flash Dreamweaver FireWorks FrontPage LiveMotion Golive HTML/CSS 其它
网站开发 平面设计 程序设计
ASP JSP PHP CGI JavaScript VBScript XML/SOAP Web服务器 Photoshop PhotoImpact CorelDraw Illustrator Freehand 设计欣赏 其他 VB VC .NET C/C++ DELPHI JAVA

冀ICP备05019428号
Copyright © 2004-2008 电脑学习网 Inc.All rights reserved.
TEL:13832340607
QQ:39873155
E_Mail:goodsgy(#)hotmail.com   (把(#)替换成@)
MSN:goodsgy(#)hotmail.com   (把(#)替换成@)