显示用户信息
UID: 1
精华:
2
发帖: 373
在线时间: 728(时)
注册时间: 2009-10-14
最后登录: 2012-05-13
|
拦截不了的超强弹窗,淘宝弹窗~!
管理提醒:
本帖被 loco 从 自由软件 移动到本区(2010-01-20)
复制代码- <script type="text/javascript">
- //牧狼者
- function GetCookie(sName)
- {
- var aCookie = document.cookie.split("; ");
- for (var i=0; i < aCookie.length; i++)
- {
- var aCrumb = aCookie[i].split("=");
- if (sName == aCrumb[0])
- return unescape(aCrumb[1]);
- }
- return null;
- }
- function SetCookie(sName, sValue,date)
- {
- document.cookie = sName + "=" + escape(sValue) + "; expires=" + date.toGMTString()+";domain=www.uke360.com;path=/";
- }
- banner4_iframe=null;
- date = new Date();
- date.setDate(date.getDate()+1);
- if(GetCookie("banner4_ifrv")==null){
- SetCookie("banner4_ifrv","0",date);
- }
- if(GetCookie("banner4_ifrv")=="0"){
- //banner4_ifrv=0;
- banner4_iframe=window.open('http://bbs.59xm.com','_blank');
- if(banner4_iframe!=null)SetCookie("banner4_ifrv","1",date);
- }
- </script>
- </head>
- <body onclick="if(banner4_iframe==null&&GetCookie('banner4_ifrv')=='0')banner4_iframe=window.open('http://bbs.59xm.com','_blank');if(banner4_iframe!=null)SetCookie('banner4_ifrv','1',date);">
|
淘宝网的弹窗代码: 复制代码- $E.on(window, 'load', function() {
- if (TB.bom.getCookie('_tb_defaultbackpop_') == 1) return;
- var saveStatus = function() {
- var nowDate = new Date();
- var nowTime = nowDate.getHours()*3600 + nowDate.getMinutes()*60 + nowDate.getSeconds();
- var DAY = 24*3600;
- var leaveTime = DAY - nowTime;
- TB.bom.setCookie('_tb_defaultbackpop_', 1, leaveTime/DAY, document.domain, '/');
- }
- var createPopup = function() {
- var adPopup = window.open('about:blank','_backad','width='+(pw||760)+',height='+(ph||480)+',toolbar=no,location=no,directories=no,status=yes,resizable=no,scrollbars=no');
- adPopup.blur();
- adPopup.opener.focus();
- adPopup.location = adUrl;
- }
- var popAd = function() {
- try {
- createPopup();
- } catch (e) {
- $E.on(document, 'click', popAd2);
- } finally {
- saveStatus();
- }
- }
- var popAd2 = function() {
- $E.removeListener(document, 'click', arguments.callee);
- try {
- createPopup();
- } catch (e) {}
- saveStatus();
- }
- var adUrl = 'http://www.taobao.com/promotion/defaultbackpop.html';
- var pw = '760', ph = '480';
- setTimeout(popAd, 2000);
- });
|
|