退弹窗代码 收集

2009年8月16日星期日 | | |

一):  
    // JavaScript Document
<!--
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";

function ext()          //在关闭IE窗口的时候弹出
{
 if(window.event.clientY<132 || altKey) iie.launchURL(popURL);
}

function brs()       //插入Object
{
 document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}


var popURL = 'http://www.xxx.com';    //这里修改成你的退弹网址

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


//-->

以上代码保存为js格式,在需要退弹的页面使用<SCRIPT language=javascript src="xxx.js"></SCRIPT>调用

此代码测试了一天.弹窗率在80%左右.很不错.

二):下列代码是退弹窗的代码!放在页面底部就可以了。

<SCRIPT language=javascript>
function popwin(popurl,target)
{
    stb.DOM.Script.window.open(popurl,target);
}
</SCRIPT>

<OBJECT id=stb height=1 width=1 classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A><PARAM NAME="ActivateActiveXControls" VALUE="1"><PARAM NAME="ActivateApplets" VALUE="1"></OBJECT>
<BODY onbeforeunload="popwin('http://要弹出的网址','_blank');"  ondragstart="return false" onselectstart="return false" topmargin="0">

三):
crsky的..还比较好用 复制内容到剪贴板
代码:
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.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;
document.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;
document.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 = GetCookie('index'); //同一ip只显示一次
//var count;//同一ip只显示N次
//alert(count);
//count = null;
if(count == null) {
SetCookie('index','1')
return 1
}
else{
var newcount = parseInt(count) + 1;
if(newcount<2) count=1;
SetCookie('index',newcount,exp);
//DeleteCookie('index')
return newcount
}
}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function openAds(){
var obj = new Object();
        obj.name="ShowPge";
        window.showModalDialog("javascript:sw=screen.width;sh=screen.height;window.open('http://www.ourts.com/bbs/','fdsalkkk','top=0,left=0,height='+sh+',width='+sw+',toolbar=yes,menubar=yes,scrollbars=1,resizable=yes,location=yes,status=yes');window.close();","","scroll:1;status:0;help:0;resizable:1;dialogWidth:0px;dialogHeight:0px");
        window.focus();
}  
if(amt()==1)
{
openAds()
}
//-->
 
四):
支持 Windows XP SP2 xp sp3(即支持IE7)的超级弹退代码
使用说明:
1. 把SuperExitPopup.js这行 var popURL1 = 'http://tv.cnzz.cc'; 里面的网址改成你要退弹的地址
2. 网页里面加上<SCRIPT language=javascript src="SuperExitPopup.js"></SCRIPT>
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://tv.cnzz.cc';
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);");
我的QQ空间
dvbbs 8.2 论坛漏洞到webshell SQL版
我们可以看到登陆提示为"本论坛不存在该用户名"这个就说明我们...
 

0 评论:


所有文章收集于网络,如果有牵扯到版权问题请与本站站长联系。谢谢合作![email protected]