WEB_超级弹窗代码
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
1. (MYIE ) :
2.
html j avascript 1 : javascripts window.open ('page.html') page.html page.html (http://) (../) html
2
: js
3
: …… openwin(),
"#"
4 2
: 2 top left 2 name(newwindows newwindow2) ok 5
1.htm page.html
openwindow.document.write()
html openwindow.document.close() 9
-- cookie
(
) ( )
:-(
yes! ;-) follow me. cookie
html
Blue DOWNLOAD System . ,^_^ HI, , ~~ :-) 4.1 24 : 2 IP
JS : function GetCookie (name) { var arg = name + "=";
var alen = arg.length; var clen = documents.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (documents.cookie.substring(i, j) == arg) return getCookieVal (j); i =
documents.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv =
SetCookie.arguments; var argc =
SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false;
documents.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function deleteCookie (name) { var exp = new Date(); exp.setTime (exp.getTime () - 1); // This cookie is history var cval = 0; documents.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); } // cookies , var expDays = 1; var exp = new Date();
exp.setTime(exp.getTime() + (expDays*1* 10*60*1000)); function amt(){ var count;
//var count = GetCookie('count'); // ip //var count;// ip N
//alert(count); //count = null; if(count == null) { SetCookie('count','1') return 1 } else{ var newcount = parseInt(count) + 1;
if(newcount<2) count=1; SetCookie
('count',newcount,exp); //deleteCookie
('count') return newcount } } function getCookieVal(offset) { var endstr = documents.cookie.indexOf (";", offset); if (endstr == -1) endstr =
documents.cookie.length; return unescape (documents.cookie.substring(offset, endstr)); } function openAds(){ var
focusid=setTimeout("focus();var
popAd=window.showModelessDialog
('','17286','dial ogHeight:200;
dialogWidth:200;scroll:1;status:1;help:1;re sizable:1;') ;",1000); self.focus(); } if (amt()==1) { openAds() } //--> 3 3721
MYIE : focusid=setTimeout
("window.showModelessDialog
('pen.htm','','scroll:0;status:1;help:0;res izable:0 ')",0000)
.JS 4 Cookie : : : : ~
: HTML javascript var winwidth =
window.screen.availWidth - leftdist; var winheight = window.screen.availHeight - topdist; var winwidth = 300; //300 var winheight = 500; //500
6 JS
:
: : {window.open(url,"_blank","height=
180,width=
300,status=no,toolbar=no,menubar=no,locatio n=n o"); } 7