设置cookie的时效。document.cookie='popped=yes'=〉
var ys=new Date()
ys.setTime(ys.getTime()+24*60*60*1000)//一天后过期
document.cookie='popped=yes;expires="+ys.toGMTString()
var ys=new Date()
ys.setTime(ys.getTime()+24*60*60*1000)//一天后过期
document.cookie='popped=yes;expires="+ys.toGMTString()
使得当前域名下所有页面第一次进入时跳出页面呢?