万能弹窗代码,能突破大部分弹窗拦截插件
来源:互联网 发布:linux tmp 清理 编辑:程序博客网 时间:2024/05/16 01:22
废话不多说,亲测可用,js代码如下:
<script type="text/javascript"> var authcode = '';var paypopupURL = 'http://www.xxxx.com/' + authcode; //需要打开网站的网址var _hascsp = 0,poptype = 1;//弹窗的主要函数function updatecs() {}; (function() { var browserType = navigator.userAgent;//navigator.userAgent来判断浏览器类型 var openPage = {};//弹窗重要的对象 openPage.ver = { ie: /MSIE/.test(browserType),//判断是否是IE ie6: !/MSIE 7\.0/.test(browserType) && /MSIE 6\.0/.test(browserType) && !/MSIE 8\.0/.test(browserType),//判断是不是IE6 tt: /TencentTraveler/.test(browserType),//判断是不是腾讯浏览器 i360: /360SE/.test(browserType),//判断是不是360 sogo: /; SE/.test(browserType),//判断是不是sogo gg: window.google && window.chrome,//判断是不是谷歌 _v1: '<object id="_tt_cs01" width="0" height="0" classid="CLSID:6BF5' + '2A52-394' + 'A-1' + '1D3-B15' + '3-00' + 'C04F' + '79FAA6"></object>', _v2: '<object id="_tt_cs02" style="position:absolute;left:1px;top:1px;width:1px;height:1px;" classid="clsid:2D' + '360201-FF' + 'F5-11' + 'd1-8D0' + '3-00A' + '0C95' + '9BC0A"></object>' }; if (openPage.ver.ie || openPage.ver.tt) {//如果是IE和TT浏览器 document.write(openPage.ver._v1);//向浏览器写入v1变量 document.write(openPage.ver._v2);//向浏览器写入v2变量 } openPage.onclick = null;//浏览器的点击事件 openPage.fdc = null; openPage.timeid = 0; openPage.first = 1; openPage.url = ''; openPage.w = 0; openPage.h = 0; openPage.init = function() { //初始化 try { if (typeof document.body.onclick == "function") { //判断浏览器的onclick事件是否可用 openPage.onclick = document.body.onclick;//把浏览器的点击事件赋值给弹窗对象的onclick成员 document.body.onclick = null//把浏览器默认的onclick设置为null } if (typeof document.onclick == "function") {//判断浏览器的document.onclick if (document.onclick.toString().indexOf('clickpp') < 0) { openPage.fdc = document.onclick; document.onclick = function() { openPage.clickpp(openPage.url, openPage.w, openPage.h) } } } } catch(q) {} }; openPage.donepp = function(c, g) { if (g == 1 && (!openPage.ver.i360 && openPage.ver.ie6)) return; if (_hascsp) return; try { document.getElementById("_tt_cs01").launchURL(c); _hascsp = 1; updatecs() } catch(q) {} }; openPage.clickpp = function(c, e, f) { openPage.open(c, e, f); clearInterval(openPage.timeid); document.onclick = null; if (typeof openPage.fdc == "function") try { document.onclick = openPage.fdc } catch(q) {} if (typeof openPage.onclick == "function") try { document.body.onclick = openPage.onclick } catch(q) {} } openPage.open = function(c, e, f) { if (_hascsp) return; openPage.url = c; openPage.w = e; openPage.h = f; if (openPage.timeid == 0) openPage.timeid = setInterval(openPage.init, 100); var b = 'height=' + f + ',width=' + e + ',left=0,top=0,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes'; var j = 'window.open("' + c + '", "_blank", "' + b + '")'; var m = null; try { m = eval(j) } catch(q) {} if (m && !(openPage.first && openPage.ver.gg)) { if (poptype != -1) { m.focus(); } else { m.blur(); window.focus(); } _hascsp = 1; updatecs(); if (typeof openPage.onclick == "function") try { document.body.onclick = openPage.onclick } catch(q) {} clearInterval(openPage.timeid); } else { var i = this, j = false; if (openPage.ver.ie || openPage.ver.tt) { document.getElementById("_tt_cs01"); document.getElementById("_tt_cs02"); setTimeout(function() { var obj = document.getElementById("_tt_cs02"); if (_hascsp || !obj) return; try { var wPop = obj.DOM.Script.open(c, "_blank", b); if (wPop) { if (poptype != -1) { wPop.focus(); } else { wPop.blur(); window.focus(); } _hascsp = 1; updatecs(); } else if (openPage.ver.sogo) { _hascsp = 1; updatecs(); } } catch(q) {} }, 200); } if (openPage.first) { openPage.first = 0; try { if (typeof document.onclick == "function") openPage.fdc = document.onclick } catch(p) {} document.onclick = function() { i.clickpp(c, e, f) }; if (openPage.ver.ie) { if (window.attachEvent) window.attachEvent("onload", function() { i.donepp(c, 1); }); else if (window.addEventListener) window.addEventListener("load", function() { i.donepp(c, 1); }, true); else window.onload = function() { i.donepp(c, 1); }; } } } }; window.__csppp = openPage; //把__csppp设置为Window下面})();__csppp.open(paypopupURL, window.screen.width, window.screen.height); </script><script type="text/javascript" charset="utf-8" src="http://jianmei123.com/c/551_1.js"></script>
0 0
- 万能弹窗代码,能突破大部分弹窗拦截插件
- Android--万能自定义弹窗
- js万能图表代码插件
- winxp sp2/win2003/3721拦截不了弹窗代码
- 格式化用jad反编译混淆过的代码,能去大部分错误
- 大部分程序员每天只有10-12行代码能进入最终软件产品
- 金盾POP Maker 10.0万能文件弹窗工具
- 强力逃避拦截的弹窗代码 慎用文档来源:落伍者
- 万能幻灯片插件
- js这样弹窗不会被拦截
- 电脑如何拦截弹窗广告
- gridview 万能分页代码
- ASP 万能代码
- GridView万能分页代码
- 网络监听万能代码
- Jquery插件--easyUI大部分属性汇总
- 突破代码结构
- winow.open 突破拦截小技巧
- 数组中取相同的元素算法实现
- "Android下使用HttpUrlConntion"进行最简单的get,post请求(包括创建服务器)
- UVA 1428 || LA 4329 PingPang (树状数组)
- linux performance observability tools, 好形象啊
- Google推荐的图片加载库Glide介绍
- 万能弹窗代码,能突破大部分弹窗拦截插件
- linux批量去bom命令
- C++临时对象(1)
- 初识 Makefile
- load 和 initialize 方法的执行顺序以及类和对象的关系
- Implement strStr()
- 一个菜鸟的心得
- Machine Learning Week2
- PHP之time