打印本文 打印本文  关闭窗口 关闭窗口  
24小时同一ip弹一次/刺穿MYIE/精简代码
作者:不详  文章来源:不详  点击数  更新时间:2006/2/4 15:39:52  文章录入:ahui  责任编辑:ahui

24小时同一ip弹一次/刺穿MYIE/精简代码

【优点】
1、刺穿MYIE
2、24小时同一ip弹一次
3、不需要在body中onload加载
4、代码很精简

function Get(){
var Then = new Date()
Then.setTime(Then.getTime() + 24*60*60*1000)
var cookieString = new String(document.cookie)
var cookieHeader = "Cookie1="
var beginPosition = cookieString.indexOf(cookieHeader)
if (beginPosition != -1){
} else
{ document.cookie = "Cookie1=POPWIN;expires="+ Then.toGMTString()
var focusid=setTimeout("focus();var popAd=window.showModelessDialog('http://cidu.net/pop.html','dis','');",1000);
window.focus();
}
}Get();




pop.html为

<script language="JavaScript">
<!--
function openWindow2(URL,Name,features) { //v2.0
window.open(URL,Name,features);
}
openWindow2('http://xingming.net,'pop','resizable,scrollbars,location, top=0');
//-->
setTimeout('window.close();', 0);
</script>
打印本文 打印本文  关闭窗口 关闭窗口