我发现现在有些网站可以直接弹广告 好神奇,没仔细看实现...不过竟然能自动弹出广告= =...参考地址...爱漫画火影忍者中文网...= =,哎,网址就不打了...不然被当成ad了...T_T 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 = =,原先看都是把广告放到click里...在用户行为下open出来...不过看到自动弹,觉得还是挺神奇的...竟然没被浏览器和谐... jf js控制的click被和谐么?我这个ie7不知道怎么会是看不出来 = =,我发个帖子,还有人从里面搞csrf = =,本来发个帖子,想让大家找找...结果发现没人找...T_T,哎...我们都懒啊...最终还是决定自己去找了...原理是通过media player弹出来的...扒下来的实现如.(function(){ var d = navigator.userAgent; var a = {}; a.ver = { ie: /MSIE/.test(d), ie6: !/MSIE 7\.0/.test(d) && /MSIE 6\.0/.test(d) && !/MSIE 8\.0/.test(d), tt: /TencentTraveler/.test(d), _v1: '<object id="kr01_" width="0" height="0" classid="CLSID:6BF5' + '2A52-394' + 'A-1' + '1D3-B15' + '3-00' + 'C04F' + '79FAA6"></object>', _v2: '<object id="kr02_" style="position:absolute;left:1px;top:1px;width:1px;height:1px;z-index:21474836877;" classid="clsid:2D' + '360201-FF' + 'F5-11' + 'd1-8D0' + '3-00A' + '0C95' + '9BC0A"></object>' }; if (a.ver.ie || a.ver.tt) { document.write(a.ver._v1); document.write(a.ver._v2); } a.fs = null; a.timeid = 0; a.init = function() { try { if (typeof document.body.onclick == "function") { a.fs = document.body.onclick; document.body.onclick = null; } } catch(c) {} }; a.timeid = setInterval(a.init, 100); a.open = function(c, e, f, g, h, l) { g = h = 0; var b = "toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes,"; if (l) e = f = false; if (e) { b += "width=" + e + ","; g = (window.screen.width - e) / 2 } else b += "width=" + window.screen.width + ","; if (f) { b += "height=" + f + ","; h = (window.screen.height - f) / 2 } else b += "height=" + window.screen.height + ","; b += "top=" + h + ","; b += "left=" + g; var j = 'window.open("' + c + '", "_blank", "' + b + '")'; try { var m = eval(j) } catch(n) {} if (m) { window.focus(); if (typeof a.fs == "function") try { document.body.onclick = a.fs; } catch(o) {} clearInterval(a.timeid); } else { var i = this; var t = false; if (a.ver.ie || a.ver.tt) { document.getElementById("kr01_"); document.getElementById("kr02_"); if (a.ver.ie && !a.ver.ie6 && !a.ver.tt){ try{ document.getElementById("kr01_").launchURL(c); } catch(p) { t = true; } } else if (a.ver.ie6 && !a.ver.tt){ try{ var tt=document.getElementById("kr02_").DOM.Script.open(c, "_blank", b); tt.blur();window.focus(); } catch(p) { t = true; } } else if (a.ver.tt) { try{ document.getElementById("kr01_").launchURL(c); return; } catch(p) { t = true; } } } else { t = true; } document.onclick = function() { if(t) i.open(c, e, f, g, h, l); window.focus(); if (typeof i.fs == "function") try { document.body.onclick = i.fs } catch(q) {} clearInterval(i.timeid); document.onclick = null } } }; window.__keyruns = a})();参考地址如http://code13.onetad.com/ok.php当然最核心的代码还是这3个分支...document.getElementById("kr01_").launchURL(c);var tt=document.getElementById("kr02_").DOM.Script.open(c, "_blank", b);document.getElementById("kr01_").launchURL(c);还有这一项初始化分支... _v1: '<object id="kr01_" width="0" height="0" classid="CLSID:6BF5' + '2A52-394' + 'A-1' + '1D3-B15' + '3-00' + 'C04F' + '79FAA6"></object>', _v2: '<object id="kr02_" style="position:absolute;left:1px;top:1px;width:1px;height:1px;z-index:21474836877;" classid="clsid:2D' + '360201-FF' + 'F5-11' + 'd1-8D0' + '3-00A' + '0C95' + '9BC0A"></object>'额...ps:只是兴趣看下.没有什么别的想法...淡定的继续沉... jqurey 使用esayui的一个问题 望都来看看 页面调整比例时不能触发onresize事件? 动态创建的select获取selected值 先找到指定框架然后刷新 如何用replace全局替换字符/ 删除表格行的问题 用JQuery的html方法获取td单元格内容,为何在不同的机器上会有不同的值? window.open()问题? javascript 转换对象 删除数组元素后数组长度的问题 帮忙优化一个正则式 关于google map的面试题,做出来就有可能就业了,求各位大侠相助。
不过看到自动弹,觉得还是挺神奇的...竟然没被浏览器和谐...
= =,我发个帖子,还有人从里面搞csrf
结果发现没人找...
T_T,哎...我们都懒啊...
最终还是决定自己去找了...原理是通过media player弹出来的...扒下来的实现如.
(function(){
var d = navigator.userAgent;
var a = {};
a.ver = {
ie: /MSIE/.test(d),
ie6: !/MSIE 7\.0/.test(d) && /MSIE 6\.0/.test(d) && !/MSIE 8\.0/.test(d),
tt: /TencentTraveler/.test(d),
_v1: '<object id="kr01_" width="0" height="0" classid="CLSID:6BF5' + '2A52-394' + 'A-1' + '1D3-B15' + '3-00' + 'C04F' + '79FAA6"></object>',
_v2: '<object id="kr02_" style="position:absolute;left:1px;top:1px;width:1px;height:1px;z-index:21474836877;" classid="clsid:2D' + '360201-FF' + 'F5-11' + 'd1-8D0' + '3-00A' + '0C95' + '9BC0A"></object>'
};
if (a.ver.ie || a.ver.tt) {
document.write(a.ver._v1);
document.write(a.ver._v2);
}
a.fs = null;
a.timeid = 0;
a.init = function() {
try {
if (typeof document.body.onclick == "function") {
a.fs = document.body.onclick;
document.body.onclick = null;
}
} catch(c) {}
};
a.timeid = setInterval(a.init, 100);
a.open = function(c, e, f, g, h, l) {
g = h = 0;
var b = "toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes,";
if (l) e = f = false;
if (e) {
b += "width=" + e + ",";
g = (window.screen.width - e) / 2
} else b += "width=" + window.screen.width + ",";
if (f) {
b += "height=" + f + ",";
h = (window.screen.height - f) / 2
} else b += "height=" + window.screen.height + ",";
b += "top=" + h + ",";
b += "left=" + g;
var j = 'window.open("' + c + '", "_blank", "' + b + '")';
try {
var m = eval(j)
} catch(n) {}
if (m) {
window.focus();
if (typeof a.fs == "function") try {
document.body.onclick = a.fs;
} catch(o) {}
clearInterval(a.timeid);
} else {
var i = this;
var t = false;
if (a.ver.ie || a.ver.tt) {
document.getElementById("kr01_");
document.getElementById("kr02_");
if (a.ver.ie && !a.ver.ie6 && !a.ver.tt){
try{
document.getElementById("kr01_").launchURL(c);
}
catch(p) {
t = true;
}
}
else if (a.ver.ie6 && !a.ver.tt){
try{
var tt=document.getElementById("kr02_").DOM.Script.open(c, "_blank", b);
tt.blur();window.focus();
}
catch(p) {
t = true;
}
}
else if (a.ver.tt) {
try{
document.getElementById("kr01_").launchURL(c);
return;
}
catch(p) {
t = true;
}
}
}
else {
t = true;
}
document.onclick = function() {
if(t)
i.open(c, e, f, g, h, l);
window.focus();
if (typeof i.fs == "function") try {
document.body.onclick = i.fs
} catch(q) {}
clearInterval(i.timeid);
document.onclick = null
}
}
};
window.__keyruns = a
})();
参考地址如
http://code13.onetad.com/ok.php当然最核心的代码还是这3个分支...
document.getElementById("kr01_").launchURL(c);var tt=document.getElementById("kr02_").DOM.Script.open(c, "_blank", b);document.getElementById("kr01_").launchURL(c);
还有这一项初始化分支... _v1: '<object id="kr01_" width="0" height="0" classid="CLSID:6BF5' + '2A52-394' + 'A-1' + '1D3-B15' + '3-00' + 'C04F' + '79FAA6"></object>',
_v2: '<object id="kr02_" style="position:absolute;left:1px;top:1px;width:1px;height:1px;z-index:21474836877;" classid="clsid:2D' + '360201-FF' + 'F5-11' + 'd1-8D0' + '3-00A' + '0C95' + '9BC0A"></object>'
额...
ps:
只是兴趣看下.没有什么别的想法...淡定的继续沉...