只弹出一次的窗口
function openwin(){
window.open("pop1.html","","width=120,height=240")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadpopup(){ //*控制弹出窗口的函数哟,你要使用他的啊
if (get_cookie('popped')==''){
openwin()
document.cookie="popped=yes"
}
}FROM:http://www.cnblogs.com/edsky/articles/363086.html
版权声明:
作者:Kiyo
链接:https://www.wkiyo.cn/html/2008-01/i393.html
来源:Kiyo's space
文章版权归作者所有,未经允许请勿转载。
THE END
二维码

共有 0 条评论