Exit the bomb window code XP SP3 IE6.0

time:10-10-05 forum:HTML web page, JS language and code
  Source http://www.im286.com/thread-4232404-1-1.html

[not encroach the parent window] [code reover] [new dialog box window mode]

code 1: close the page, pop up the new IE window
[code]function setCookie (name, value, days) {
EtTime (exp.getTime () days*60*60*1000);

var arr=document.cookie.match (New RegExp (.Quot; (^).Quot; name); Ion getCookie (name) {

var arr=document.cookie.match (New RegExp (.Quot; (^).Quot; name); />
}

function delCookie (name) {

var exp=new Date (); Uot; exp.toGMTString ();

}

}



document.write. AteActiveXControls.quot; value=.quot; 1.quot;.Gt; ');

document.write ('.Lt; param name=.quot; ActivateApplets.quot; value=.quot; value=.quot; '); .quot, top=0, left=0, toolbar=yes, location=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, width=1024px, height=572px.quot; Br />

window.onbeforeunload = function () {

if (getCookie (.Quot; tuitan.quot)) {
code 2: point closure [code]function setCookie (name, value, days) {

var exp=new Date (VaR); Ot; name.Quot; = (.#91; ^;.#93; *).Quot;)

document.cookie=name.Quot; =.quot; escape. 1; ^;.#93; *);

if (arr! =null) {

return unescape (arr.#91; >); E (exp.getTime () -1);

var cval=getCookie (name);

if (cval!). T; stb.quot; height=.quot; 1.quot; width=.quot; 1.quot; classid=.quot; clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A.quot;.Gt; ');

document.write. EApplets.quot; value=.quot; 1.quot;.Gt; ');

document.write ('.lt; /object.gt;);


stb.DOM.Script.window.showModalDialog (popurl, target, popDialogOptions);

}


}

}[/code]
use instructions:
save the above code as.Js, and then call it on the required web page.
1. retreat URL, VAR popurl ='http://www.163dvd.com/'; please change to your own URL,
2. time control, setCookie (.Quot; tuitan.quot;.Quot; yes.quot; 12); of which 12 represents 12 hours' rebound, and if the 24 hours, represent 24 hours of rebound,

prev:600 acres of tea garden in Ji'nan's Ling... next:Long vacation has caused many diseases. ...
post comment
Notice



approved   The first competition school in Chin...   These 9 kinds of scary symptoms foun...   A 9 year old student corrected the w...   A survey of lonely elderly people in...   Salted pickled vegetables are carcin...
rand   Mobile page adaptive cell phone scre...   Page mouse click special effect   Dandelion fluttering in the lower le...   Data:image/png; what is Base64   Distance between outer distance and ...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com