html代码|网站跳转代码大全(html 网址跳转代码)

时间:2021-07-19 11:28:29   阅读:576
  1. 第一种:

    如果你要让域名页面显示几秒钟之后跳转,可以在html代码的<head></head>部分加上这样的域名跳转代码:

    html代码|网站跳转代码大全(html 网址跳转代码)

  2. <meta http-equiv="refresh" content="3; url=http://www.zshao.vip">
  3. 第二种:

    不隐藏域名跳转之后的地址 

  4. <html>
    <body>
    <meta http-equiv="refresh" content="0.1;url=www.zshao.vip">
    </body>
    </html>


  5. 第三种:


    可隐藏域名跳转之后的地址:

  6. <html>
    <frameset framespacing="0" border="0" rows="0" frameborder="0">
    <frame name="main" src="www.zshao.vip" scrolling="auto" noresize>
    </frameset>
    </html>


  7. 第四种:
  8. 定时的域名跳转代码

  9. 此代码可以让网页在一定的时间内,跳转到另外一个网页上,其中content=" 为跳转前停暂的秒数,rul= 为跳转的域名

  10. <meta http-equiv="refresh" content="3;rul=http://www.zshao.vip">


  11. 第五种:


    如果你的域名要在客户端跳转,可以这样:

  12. <script language="javascript" type="text/javascript">window.location="http://www.zshao.vip";;</script>

    第六种:

<script language="javascript" type="text/javascript">
// 以下方式直接跳转
window.location.href='hello.html';
// 以下方式定时跳转
setTimeout("javascript:location.href='hello.html'", 5000); 
</script>


第七种:

<head>
<!-- 以下方式只是刷新不跳转到其他页面 -->
<meta http-equiv="refresh" content="10">
<!-- 以下方式定时转到其他页面 -->
<meta http-equiv="refresh" content="5;url=hello.html">
</head>


上一篇:BgRemover|图片背景透明(图片背景透明格式是什么)

下一篇:网站常用颜色代码(网站常用颜色代码是什么)

网友评论