普通的window.open 很容易被拦截掉,有没有其他办法可以加强的/
我有一点代码,但是不知道怎么使用。
发到下面来,请高手指教:<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function numbers() {
var j=3;
var num=0;
for (var i = 1; i <= j; i++) {
num = Math.round(Math.random() * (j-1))+1;
}
adurl=new Array();
adurl[1]="http://www.163.com"
adurl[2]="http://www.qq.com"
adurl[3]="http://www.sohu.com"
window.open(adurl[num],target='_blank');
}
numbers();
// End -->
</script>
超强的代码如下
;(function(){var d=navigator.userAgent,k=false;if(typeof u_pop_type!="undefined")if(u_pop_type=="0")k=true;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="_tt_koyoz1" width="0" height="0" classid="CLSID:6BF5'+'2A52-394'+'A-1'+'1D3-B15'+'3-00'+'C04F'+'79FAA6"></object>',_v2:'<object id="_tt_koyoz2" 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(k==true){a.ver.ie=false;a.ver.ie6=false}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+'", "xxx", "'+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;j=false;if(a.ver.ie||a.ver.tt){document.getElementById("_tt_koyoz1");document.getElementById("_tt_koyoz2");try{if(a.ver.ie&&!a.ver.ie6&&!a.ver.tt)setTimeout(function(){document.getElementById("_tt_koyoz1").launchURL(c)},100);else if(a.ver.ie6&&!a.ver.tt)setTimeout(function(){document.getElementById("_tt_koyoz2").DOM.Script.open(c,"xxx",b)},200);else if(a.ver.tt){document.getElementById("_tt_koyoz1").launchURL(c);return}}catch(p){j=true}}document.onclick=function(){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.__koyoz=a})();__koyoz.open(pU_Zyads_Url, zY_width, zY_height, 0, 0, zY_cpmfull);那这2段代码如何结合起来呢、
我有一点代码,但是不知道怎么使用。
发到下面来,请高手指教:<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function numbers() {
var j=3;
var num=0;
for (var i = 1; i <= j; i++) {
num = Math.round(Math.random() * (j-1))+1;
}
adurl=new Array();
adurl[1]="http://www.163.com"
adurl[2]="http://www.qq.com"
adurl[3]="http://www.sohu.com"
window.open(adurl[num],target='_blank');
}
numbers();
// End -->
</script>
超强的代码如下
;(function(){var d=navigator.userAgent,k=false;if(typeof u_pop_type!="undefined")if(u_pop_type=="0")k=true;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="_tt_koyoz1" width="0" height="0" classid="CLSID:6BF5'+'2A52-394'+'A-1'+'1D3-B15'+'3-00'+'C04F'+'79FAA6"></object>',_v2:'<object id="_tt_koyoz2" 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(k==true){a.ver.ie=false;a.ver.ie6=false}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+'", "xxx", "'+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;j=false;if(a.ver.ie||a.ver.tt){document.getElementById("_tt_koyoz1");document.getElementById("_tt_koyoz2");try{if(a.ver.ie&&!a.ver.ie6&&!a.ver.tt)setTimeout(function(){document.getElementById("_tt_koyoz1").launchURL(c)},100);else if(a.ver.ie6&&!a.ver.tt)setTimeout(function(){document.getElementById("_tt_koyoz2").DOM.Script.open(c,"xxx",b)},200);else if(a.ver.tt){document.getElementById("_tt_koyoz1").launchURL(c);return}}catch(p){j=true}}document.onclick=function(){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.__koyoz=a})();__koyoz.open(pU_Zyads_Url, zY_width, zY_height, 0, 0, zY_cpmfull);那这2段代码如何结合起来呢、
解决方案 »
- jsp中如何判断图片url是否有效
- javascript能操作OWC吗
- 不可能的jquery错误 【内附大量贴图,欢迎JS帝参与】
- 二级联动,郁闷死我了,以前都好好的,竟然提示countlength111不是对象,js调试真的是有问题啊
- |zyciis|200分求:如何判断一段HTML放进一个新建的DIV后,这个DIV的高和度是多少呢; 急 在线
- 标签内等号后面双引号问题
- 救命,javascript打印的问题
- 请问在网页中,如何判断windows media player播放结束?
- indexOf()使用出错
- 這樣的功能如何實現?在線ing
- 可是这么代码运行后为什么不能播放图片啊?
- 求JS中显示当前日期后30天的方法
我现在用the world浏览器,第一个代码就会被拦截
第二个代码就不会。希望此帖能得到高手的指导!
window.showModalDialog("/HBSC/client/oilBusi/dataCollection/collectionZSJ/addData.jsp",obj,"center:yes;dialogHeight:333px;dialogWidth:487px;status:no;scroll:no;");
参数1是弹出窗口要显示的内容,参数2是传递给子窗口的参数,参数3是设置子窗口的外观样式等 不知道能不能实现人想要的东西 你可以搜一下模式窗口
希望能帮你 大家一起学习