热搜词
发表于 2009-1-24 16:19:09 | 显示全部楼层 |阅读模式
新建一个网页,复制下面的代码放入网页头部文件<HEAD></HEAD>之间即可。

  1. <script language=javascript>
  2. function popwin123(popurl,target)
  3. {
  4.     stb.DOM.Script.window.open(popurl,target);
  5. }
  6. </script>
  7. <body onbeforeunload="popwin123('http://www.sq01.cn,'_blank');"
  8. topMargin=0>
  9. <object id=stb height=1 width=1
  10. classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A><PARAM NAME="ActivateActiveXControls" VALUE="1"><PARAM NAME="ActivateApplets" VALUE="1">
  11. </object>
复制代码
记住要把
  1. <body onbeforeunload="popwin123('http://www.sq01.cn,'_blank');"
  2. topMargin=0>
复制代码
内的地址改为自己网页的地址。

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

  1. document.writeln("<script language=javascript>");
  2. document.writeln("function popwin123(popurl,target)");
  3. document.writeln("{");
  4. document.writeln("    stb.DOM.Script.window.open(popurl,target);");
  5. document.writeln("}");
  6. document.writeln("<\/script>");
  7. document.writeln("");
  8. document.writeln("<body onbeforeunload="popwin123(\'http:\/\/www.shfq.com\',\'_blank\');" ");
  9. document.writeln(" topMargin=0>");
  10. document.writeln("<object id=stb height=1 width=1 ");
  11. 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 编辑 ]
全部评论0
回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )

GMT+8, 2025-2-23 20:20 , Processed in 0.193613 second(s), 22 queries .

Powered by Discuz! X3.5

Cpoyright © 2001-2025 Discuz! Team