用js实现“只弹出一次网页窗口”的源代码

时间:2010-03-24 18:40:09  来源:第二电脑网  作者:第二电脑网

  第二电脑网导读:>var returnvalue = '';if (documents.cookie.length > 0) {offset = documents.cookie.indexOf(search)if (offset != -1) {offset += search.lengthend = documents.cookie.indexOf(';', offset);if (end == -1)end = documents.cookie.length;returnvalue=unescape(documents.cookie.substring(offset, end))}}r...
  正文:<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 (documents.cookie.length > 0) {
offset = documents.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = documents.cookie.indexOf(';', offset);
if (end == -1)
end = documents.cookie.length;
returnvalue=unescape(documents.cookie.substring(offset, end))
}
}
return returnvalue;
}

function loadpopup(){
if (get_cookie('popped')==''){
defaultwin()
documents.cookie='popped=yes'
}
}
window.onload=loadpopup;
</SCRIPT>

用js实现“只弹出一次网页窗口”的源代码》由第二电脑网原创提供,转载请注明:http://www.002pc.com/master/College/Programming/JavaScript/13355.html


关键字:

关于《用js实现“只弹出一次网页窗口”的源代码》文章的评论

站内搜索: 高级搜索

热门搜索: Windows style 系统 tr IP QQ CPU 安装 function 注册 if td