js可突破windows彈退效果代碼

來源:互聯網
上載者:User

關於如何在Windows XP 及 SP1-SP2下面彈退的代碼,已經很多人討論過,刺客前段時間找到了一個,並使用在一些頁面上面,收入增長10%以上

JS原始碼(SuperExitPopup.js):

// Exit Begin

var nid=0;

var tid=431;

var mid=947;

var full=1;

var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1;status:0";

var popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1";

var doexit = true;

var usePopDialog = true;

var isUsingSpecial = false;

function loadpopups(){

if(doexit && !isUsingSpecial) {

doexit = false;

window.open(popURL1,"",popWindowOptions);

}

}

var isXPSP2 = false;

var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";

var str_url;

str_url = window.location.search;

function ext()

{

if(doexit)

{

doexit=false;

if(!isXPSP2 && !usePopDialog)

{

window.open(popURL1,"",popWindowOptions);

}

else if(!isXPSP2 && usePopDialog)

{

eval("window.showModalDialog(popURL1,'',popDialogOptions)");

}

else

{

iie.launchURL(popURL1);

}

}

}

function brs()

{

document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";

}

function ver()

{

isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);

if(isXPSP2) brs();

}

var popURL1 = 'http://www.kanshule.com';

isUsingSpecial = true;

if (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf("2007")!=-1)

{

}

else

{

eval("window.attachEvent('onload',ver);");

eval("window.attachEvent('onunload',ext);");

}

使用方法:

www.kanshule.com 改成你要彈出的地址

網頁裡面加上<SCRIPT language=javascript src="SuperExitPopup.js"></SCRIPT>即可

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.