跳转JS弹窗,同一IP下多久弹一次,可设置JS地址!


<script> 

var cookieString = new String(document.cookie) 

var cookieHeader = 'happy_pop=' //更换happy_pop为任意名称 

var beginPosition = cookieString.indexOf(cookieHeader) 

if (beginPosition <0){ 

window.open('http://www.dnwfb.com/js','','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> 

本文链接:https://www.dnwfb.com/1540.html,转载请注明出处。
0

评论0

没有账号? 注册  忘记密码?