Js pop-up window code can break through the aoyou IE6.0 Browser

Source: Internet
Author: User

I didn't want to send this type of code to everyone. We don't want any pop-up windows on the website, because this will cause troubles to visitors and affect the website, however, you will not worry about large websites with high traffic and those that rely on search engines. In addition, some pop-up windows can also bring benefits to webmasters, so as to make the website more dynamic!

Well, let's not bother with the code:

Copy to ClipboardReference: [www.bkjia.com]/*
Function Description: a pop-up window is displayed, which can break through aoyou, xp + sp2, ie6.0 or lower, and google interception software.
However, IE7 and FIREFOX2.0 cannot break through. Code Source: www.bkjia.com
*/

If (! Get_cookie (unionsky_mycookie ))
{

Set_cookie (unionsky_mycookie );

Var pop = fStart (paypopupURL, '', casalef + ', left =' + l + ', top =' + t );
Pop. blur ();
}

<! -- Start function begin -->
Function fStart (u, n, v)
{If (! OV1.opera)
Var twin = oV1.open (u, n, v );
If (! Window. fV1)
{FV13 ();}
Var w = oV2 (u, n, v );
Var wo = vWA [w];
Wo. pw = twin;
FV3 ("fV10 (" + w + ")", 100 );
Return (wo. pw & fV35 )? Wo. pw: wo;
}
<! -- Start the function end -->

Function fV11 () {return fV6 (vV1 );}
Function fV5 (x) {return true ;}

<! -- Create a struct begin -->
Function oV2 (u, n, v)
{Var c = vWA. length;
VWA [c] = new Array;
Var cw = vWA [c];
Var tn = new Date ();
If (! V) var v = '';
If (! N) var n = tn. getTime () + 'n' + c;
Cw. location = u;
Cw. f = 1;
Cw. s = 0;
Cw. n = n;
Cw. v = v;
Cve-cn = "";
Cw. cnt = c;
Cw. blur = function () {cw. f =-1 ;};
Cw. focus = function () {cw. f = 1 ;};
Return c
}
<! -- Create struct end -->

<! -- Alias definition function begin -->
Function fV13 (){
OV5=oV1.doc ument;
VWA = new Array;
FV1 = oV1.open;
FV2 = oV1.focus;
FV3 = setTimeout;
FV4 = clearTimeout;
VV1 = 'authorization + PC9PQkpFQ1Q + ';
FV20 = (document. all &&! OV1.opera )? 1:0;
IsG = fV31 = fV32 = fV35 = 0;
FV21 = fV20? (Navigator. appVersion. indexOf ('nt 5.1 ')> 0): 0;
FV34 = fV20? (Navigator. appVersion. indexOf ('msie 7')> 0): 0;
If (navigator. userAgent)
{
FV35 =! FV20? (Navigator. userAgent. indexOf ('Firefox/2')> 0): 0;
}
OV5.write (fV6 ('export oZlYxLDUsdHJ1ZSkiPg = '));
OV5.write (fV6 ('pkgdibzdhlszt0izglzcgxhetppbmxpbmuiiglkpsjvvjewij48l2rpdj4 = '));
}
<! -- Alias definition function end -->

Function debug () {void (0 )}

<! -- Gzip decryption algorithm function begin -->
Function fV6 (input)
{
Var o = "";
Var chr1, chr2, chr3; var enc1, enc2, enc3, enc4;
Var I = 0;
Var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 +/= ";
Input = input. replace (/[^ A-Za-z0-9 \ + \/\ =]/g ,"");
Do {
Enc1 = keyStr. indexOf (input. charAt (I ++ ));
Enc2 = keyStr. indexOf (input. charAt (I ++ ));
Enc3 = keyStr. indexOf (input. charAt (I ++ ));
Enc4 = keyStr. indexOf (input. charAt (I ++ ));
Chr1 = (enc1 <2) | (enc2> 4 );
Chr2 = (enc2 & 15) <4) | (enc3> 2 );
Chr3 = (enc3 & 3) <6) | enc4;
O = o + String. fromCharCode (chr1 );
If (enc3! = 64)
{O = o + String. fromCharCode (chr2 );}
If (enc4! = 64)
{O = o + String. fromCharCode (chr3 );}}
While (I <input. length );
Return o;
}
<! -- Gzip decryption algorithm function end -->


Function fV12 ()
{
If (-- fV25 <1) return;
OV1.onerror = fV5;
Var t = fV3 ('fv12 () ', 500 );
OV1.wO1 = oV3.oV4. object. parentWindow;
OV3.location = fV6 ('ywjvdxq6ymxhbms = ');
FV3 ('fv8 (wO1.open, 2) ', 200 );
FV4 (t );
}

Function fV17 ()
{
If (-- fV25 <1)
{
FV25 = 25;
Var t = fV3 ('fv12 ()');
Return;
}
Var x = fV3 ('fv17 () ', 250 );
OV1.fV14 = oV8.children [0]. parentWindow;
FV1 = fV14.open; fV4 (x );
OV8.removeChild (oV8.children [0]);
OV5.all ['ov6']. fireEvent ('onchange ');
}

Function fV16 ()
{
If (fV34 | fV21)
{
OV5.all ['ov6']. fireEvent ('onchange ');
}
Else
{
Z = createPopup ();
Ov8jwz.doc ument. body;
OV8.innerHTML = fV6 (vV1 );
FV25 = 5; fV3 ('fv17 () ', 200 );
}
}

<! -- Assign a begin value to innerHTML to control the span = oV10 object -->
Function fV19 (v ){
If (oV5.getElementById ('ov10 '))
{
OV5.getElementById ('ov10'). innerHTML = v;
}
Else
{
Var o = oV5.createElement ("span ");
O. innerHTML = v;
O. style. visibility = "visible ";
OV5.body. appendChild (o );
}
}
<! -- Assign an end value to innerHTML to control the span = oV10 object -->

Function fV23 ()
{
FV8 (fV1, 4 );
}
Function fV22 ()
{
If (-- fV25 = 0)
{
FV21 = 0;
FV7 ();
Return;
}
Var wo = vWA [0];
Var x = fV3 ('fv22 () ', 750 );
Var o = fV24 ('ov9 ');
If (o. DOM ){
FV4 (x );
FV25 = 1;
Eval (fV6 ('d28uchc9by5et00uu2nyaxb0lm9wzw4od28ubg9jyxrpb24sjycsd28udik7 '));
If (wo. pw | fV34)
{
FV9 (wo, 4 );
}
Else
{
Var t = fV3 ('fv33 () ', 500 );
Eval (
FV6 ("plugin "));
FV3 ('fv23 ()');
FV4 (t );}
}
}


Function fV28 ()
{
FV19 (fV6 ('commandid = '));
FV25 = 6;
FV3 ('fv22 () ', 500)
}
Function fV26 ()
{
FV19 (fV6 ('policiamf2yxnjcmlwddpwyxjlbnquzlyxmsgpij48l0lgukfnrt4 = '));
FV25 = 20;
FV3 ('fv12 () ', 200 );
}

<! -- Create an object begin -->
Function fV30 (){
FV3 ('fv32? FV29 (): fV28 ()');
Var o = document. createElement ('object ');
O. onreadystatechange = function () {fV32 = 1 };
O. classid = 'clsid: D2BD7935-05FC-11D2-9059-00C04FD7A1BD ';
O. onreadystatechange = function () {fV32 = 0 };
}
<! -- Create an object end -->

<! -- Create an object begin -->
Function fV29 (){
FV3 ('fv31? FV28 (): fV33 ()');
Var o = document. createElement ('object ');
O. onreadystatechange = function () {fV31 = 1 };
O. classid = 'clsid: 9E30754B-29A9-41CE-8892-70E9E07D15DC ';
O. onreadystatechange = function () {fV31 = 0 };
}

Function fV33 (){
FV3 ('isg? FV16 (): fV26 ();');
Var o = document. createElement ('object ');
O. onreadystatechange = function () {isG = 1 };
O. classid = 'clsid: 00ef2092-6ac5-47c0-bd25-cf2d5d657feb ';
O. onreadystatechange = function () {isG = 0 };}

Function fV7 (){
OV5.body. onclick = function () {fV8 (oV1.open, 3 )};
If (oV5.createElement)
{
FV24 = oV5.getElementById;
If (fV34) fV21 = 0;
If (fV20 ){
If (fV21) {fV30 ();}
Else {fV33 ();}}
Else {
If (! FV35)
{
Out = '<embed style = "position: absolute; top: 0px" swliveconnect = "true" src = "http://as.casalemedia.com/cmp2.swf" width = "1" height = "1"> '; fV19 (out );
}
If (! OV5.all)
{
X = oV5.getElementById ('ov6 ');
X. focus ();
X. value = Math. random ();}
}
}
}
Function fV8 (f, t, y)
{
For (var I = 0; I <vWA. length; I ++)
If (vWA [I]. s = 0)
{
VWA [I]. s =-1;
Var wo = vWA [I];
Wo. pw = f (wo. location, wo. n, wo. v );
FV3 ("var I =" + I + "; var wo = vWA [I]; if (wo. s =-1) {wo. s = 0 }");
FV9 (wo, t );
}
}

<! -- Begin -->
Function fV9 (wo, s)
{
If (! S) s = 0; if (wo. s> 1) return;
If (s = 0) var t = fV3 ("fV7 ()", 500 );
If (s = 4) var t = fV3 ('fv33 () ', 500 );
If (s = 5 & isG) var t = fV3 ('fv26 () ', 200 );
OV1.onerror = fV5;
If (wo. pw ){
If (wo. f =-1)
{
Wo. pw. blur ();
FV34? OV5.focus (): fV2 ();}
Else {wo. pw. focus ();}
Wo. s = 2; fV4 (t );
Eval (fV6 ('commandid h0dHA6Ly93d3cuYWRvdXRwdXQuY29tL3ZlcnNpb24yL2hpdC5jZm0/dHlwZT0nICsgczsNCiAgfQ0KfQ = '));
OV1.onerror = null;
}
}
<! -- End -->

<! -- Begin -->
Function fV10 (w)
{
If (oV1.opera &&! FV20)
{
FV7 ();
Return;
}
Wo = vWA [w];
FV9 (wo );
}
<! -- End -->
<! -- Get cookie -->
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;
}

<! -- Write cookie -->
Function set_cookie (Name)
{
<! -- Cookie expiration time. If no cookie is used, the value 0 -->
Var cookie_time = 0;

Var Then = new Date ();
Then. setTime (Then. getTime () + cookie_time * 60*60*1000 );
Document. cookie = Name + '= 1; expires =' + Then. toGMTString () + '; path = /;';

}

Usage:

Save the above Code as tanchuang. js, save the following code as liehuopop. js, and then call it on the webpage. Note that you should replace the fire web page with your web site.

Copy to ClipboardReference: [www.bkjia.com] // call the pop-up code
Var paypopupURL;
PaypopupURL = 'HTTP: // www.bkjia.com /';
Var oV1 = window;
Ao_lic = 'casalemedia ';
Var casalef = 'width = 1000, height = 700, toolbar = 0, location = 0, titlebar = 0, menubar = 0, scrollbars = 0, resizable = 1, directories = 0, status = 0 ';
Var l = (screen. width-800)/2;
Var t = (screen. height-600)/2;
Var unionsky_mycookie = "greendown ";
Document. write ("<script language = JavaScript1.1 SRC = 'tanchuang. js'> <" + "/SCRIPT> ");

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.