Posted in Javascript onJuly 27, 2007
<script>
var cookieString = new String(document.cookie)
var cookieHeader = 'happy_pop=' //更换happy_pop为任意名称
var beginPosition = cookieString.indexOf(cookieHeader)
if (beginPosition <0){
window.open('2.html','','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() + 60*1000 ) //同一ip设置过期时间,即多长间隔跳出一次
document.cookie = 'happy_pop=yes;expires='+ Then.toGMTString() //更换happy_pop和第4行一样的名称
}
</script>
弹出广告特效(一个IP只弹出一次)的代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@