找回密码
 注册账户
查看: 2464|回复: 7

几段简单的网页跳转代码

[复制链接]
棋子 发表于 2007-6-12 19:38:33 | 显示全部楼层 |阅读模式
不隐藏转向之后的地址 代码一:
  1. <html>
  2. <body>
  3. <form name=loading>
  4. <P align=center><FONT face=Arial color=#0066ff size=2>loading...</FONT> <INPUT
  5. style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none; BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none"
  6. size=46 name=chart> <BR><INPUT
  7. style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center"
  8. size=47 name=percent>
  9. <SCRIPT>
  10. var bar=0
  11. var line="||"
  12. var amount="||"
  13. count()
  14. function count(){
  15. bar=bar+2
  16. amount =amount + line
  17. document.loading.chart.value=amount
  18. document.loading.percent.value=bar+"%"
  19. if (bar<99)
  20. {setTimeout("count()",100);}
  21. else
  22. {window.location = "将这里改成要转入的网址";}
  23. }</SCRIPT>
  24. </P></form>
  25. </body>
  26. </html>
复制代码
 楼主| 棋子 发表于 2007-6-12 19:40:49 | 显示全部楼层
不隐藏转向之后的地址 代码二:
  1. <html>
  2. <body>
  3. <script language="javascript">
  4. <!--
  5. function goToURL() { //v2.0
  6. for (var i=0; i< (goToURL.arguments.length - 1); i+=2) //with arg pairs
  7. eval(goToURL.arguments+".location=''"+goToURL.arguments[i+1]+"''");
  8. document.returnvalue = false;
  9. }
  10. //-->
  11. </script>
  12. <body bgcolor="#FFFFFF" onLoad="goToURL(''parent'',''将这里改成要转入的网址'');return document.returnvalue">
  13. </body>
  14. </html>
复制代码
 楼主| 棋子 发表于 2007-6-12 19:42:12 | 显示全部楼层
不隐藏转向之后的地址 代码三:
  1. <html>
  2. <SCRIPT LANGUAGE="javascript">
  3. <!-- Start Code
  4. var ver = navigator.appVersion;
  5. if (ver.indexOf("MSIE") != -1)
  6. {
  7. window.location.href="将这里改成要转入的网址"
  8. }else
  9. window.location.href="将这里改成要转入的网址"
  10. // End Code -->
  11. </SCRIPT>
  12. </html>
复制代码

不隐藏转向之后的地址 代码四:
  1. <html>
  2. <body>
  3. <meta http-equiv="refresh" content="0.1;url=将这里改成要转入的网址">
  4. </body>
  5. </html>
复制代码
可隐藏转向之后的地址:
  1. <html>
  2. <frameset framespacing="0" border="0" rows="0" frameborder="0">
  3. <frame name="main" src="将这里改成要转入的网址" scrolling="auto" noresize>
  4. </frameset>
  5. </html>
复制代码
mydiv 发表于 2009-4-24 08:44:18 | 显示全部楼层
收藏拉!老大又发新代码了!
头像被屏蔽
hhir 发表于 2009-4-24 09:03:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽
googlegood 发表于 2009-5-11 18:23:40 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册账户

本版积分规则

存档|黑屋|手机|网络实验室 本站服务器由美国合租以及IDCLayer国际数据提供!!!

GMT+8, 2026-6-16 05:24 , Processed in 0.011369 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表