<script>
var cookieString = new String(document.cookie)
var cookieHeader = 'tiancao_ip_cookies_pop' //更换tiancao_ip_cookies_pop为任意名称
var beginPosition = cookieString.indexOf(cookieHeader)
if (beginPosition <0){
window.open('http://www.tiancao.net/baidu.htm','','top=0,left=0,width=787,height=480,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes');
var Then = new Date()
Then .setTime(Then.getTime() + 12*60*60*1000 ) //同一ip设置过期时间,即多长间隔跳出一次
document.cookie = 'tiancao_ip_cookies_pop=yes;expires='+ Then.toGMTString()//更换tiancao_ip_cookies_pop和第4行一样的名称
}
</script>
var cookieString = new String(document.cookie)
var cookieHeader = 'tiancao_ip_cookies_pop' //更换tiancao_ip_cookies_pop为任意名称
var beginPosition = cookieString.indexOf(cookieHeader)
if (beginPosition <0){
window.open('http://www.tiancao.net/baidu.htm','','top=0,left=0,width=787,height=480,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes');
var Then = new Date()
Then .setTime(Then.getTime() + 12*60*60*1000 ) //同一ip设置过期时间,即多长间隔跳出一次
document.cookie = 'tiancao_ip_cookies_pop=yes;expires='+ Then.toGMTString()//更换tiancao_ip_cookies_pop和第4行一样的名称
}
</script>
代码放置在<body></body>之间
阅读全文……