JS弹窗代码24 小时弹
<script language="javascript">
function get_usercookie(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 OpenWin(){
window.showModelessDialog('http://www.tao536.com/index.php','','scroll:1;status:1;help:1;resizable:1;dialogWidth:550px;dialogHeight:450px;dialogTop:200;dialogLeft:200;');
document.all.a1.focus();
}
if (get_usercookie('newasp_user_cookie')==''){
var Then = new Date();
Then.setTime(Then.getTime() + 36000*1000);
document.cookie='newasp_user_cookie=yes;expires='+ Then.toGMTString();
document.write("<body onload=\"OpenWin();\">");
}
</script>