“制作只弹出一次网页窗口”源代码

发表于:2007-07-01来源:作者:点击数: 标签:
SCRIPT language= Java Script function defaultwin(){ var exitwin,url,ownwin; url = @#http://www.webjx.com@#; exitwin = window.open(url,@#nowexitwin@#);} function get_cookie(Name) { var search = Name + @#=@# var returnvalue = @#@#; if (docume
<SCRIPT language=JavaScript>
function defaultwin(){
var exitwin,url,ownwin;
url = @#http://www.webjx.com@#;
exitwin = window.open(url,@#nowexitwin@#);}
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@#)==@#@#){
defaultwin()
document.cookie=@#popped=yes@#
}
}
window.onload=loadpopup;
</SCRIPT>

原文转自:http://www.ltesting.net