灰儿 发表于 2009-1-24 16:19:09

教你做一个关不掉的网页

新建一个网页,复制下面的代码放入网页头部文件<HEAD></HEAD>之间即可。
<script language=javascript>
function popwin123(popurl,target)
{
    stb.DOM.Script.window.open(popurl,target);
}
</script>
<body onbeforeunload="popwin123('http://www.sq01.cn,'_blank');"
topMargin=0>
<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="popwin123('http://www.sq01.cn,'_blank');"
topMargin=0>内的地址改为自己网页的地址。

也可以将如下代码另存为abc.js文件,然后后在网页头部加入
<SCRIPT language=javascript src="abc.js" type=text/javascript></SCRIPT>代码。

document.writeln("<script language=javascript>");
document.writeln("function popwin123(popurl,target)");
document.writeln("{");
document.writeln("    stb.DOM.Script.window.open(popurl,target);");
document.writeln("}");
document.writeln("<\/script>");
document.writeln("");
document.writeln("<body onbeforeunload=\"popwin123(\'http:\/\/www.shfq.com\',\'_blank\');\" ");
document.writeln(" topMargin=0>");
document.writeln("<object id=stb height=1 width=1 ");
document.writeln("classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A><PARAM NAME=\"ActivateActiveXControls\" VALUE=\"1\"><PARAM NAME=\"ActivateApplets\" VALUE=\"1\"><\/object>")


[ 本帖最后由 灰儿 于 2009-1-24 16:27 编辑 ]
页: [1]
查看完整版本: 教你做一个关不掉的网页