找回密码
 立即注册
搜索
查看: 803|回复: 0

三种简单的html网页自动跳转方法

[复制链接]
  • TA的每日心情
    开心
    2025-5-3 14:31
  • 签到天数: 295 天

    [LV.8]

    1143

    主题

    257

    回帖

    1143

    积分

    管理员

    贡献
    98309
    金币
    7755

    马山东

    发表于 2015-1-30 20:00 | 显示全部楼层 |阅读模式

    马上注册,结交更多好友

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×
    三种简单的html网页自动跳转方法,可以让你在打开一个html网页时自动跳转到其它的页面。

    方法/步骤
    1
    1. <html>
    2. <head>
    3. <title>正在跳转</title>
    4. <meta http-equiv="Content-Language" content="zh-CN">
    5. <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
    6. <meta http-equiv="refresh" content="0.2;url=http://daohang.tengshaowu.cn/">
    7. </head>
    8. <body>
    9. </body>
    10. </html>
    复制代码
    2
    1. <html><head><title>正在跳转</title></head>
    2. <body>
    3. <script language='javascript'>document.location = 'http://daohang.tengshaowu.cn/'</script>
    4. </body>
    5. </html>
    复制代码
    3
    1. <html>
    2. <head>
    3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    4. <title>正在跳转</title>
    5. </head>
    6. <body>
    7. <form name=loading>
    8. <p align=center> <font color="#0066ff" size="2">正在跳转,请稍等</font><font color="#0066ff" size="2" face="Arial">...</font>
    9. <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;">
    10. <input type=text name=percent size=47 style="color:#0066ff; text-align:center; border-width:medium; border-style:none;">
    11. <script>
    12. var bar=0
    13. var line="||"
    14. var amount="||"
    15. count()
    16. function count(){
    17. bar=bar+2
    18. amount =amount + line
    19. document.loading.chart.value=amount
    20. document.loading.percent.value=bar+"%"
    21. if (bar<99)
    22. {setTimeout("count()",100);}
    23. else
    24. {window.location = "http://daohang.tengshaowu.cn/";}
    25. }</script>
    26. </p>
    27. </form>
    28. <p align="center"> 如果您的浏览器不支持跳转,<a style="text-decoration: none" href="http://daohang.tengshaowu.cn/"><font color="#FF0000">请点这里</font></a>.</p>
    29. </body>
    30. </html>
    复制代码

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    关于本站|Archiver|手机版|小黑屋|ud3的个人空间 ( 鲁ICP备10201653号|鲁公网安备 37070502000015号 )|网站地图

    GMT+8, 2025-5-6 09:46 , Processed in 0.031576 second(s), 30 queries .

    Powered by Discuz! X3.5

    © 2001-2025 Discuz! Team.

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