WenRou's Blog
域名跳转代码大全
2015-5-22 温柔哥



  1. 1



    第一种:域名在服务器端跳转



    Response.Redirect(http://将这里改成要跳转的域名)



    Response.End






  2. 2



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



    <script language="javascript" type="text/javascript">



    window.location="http://将这里改成要跳转的域名";;



    </script>






  3. 3



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



    <meta http-equiv="refresh" content="3; url=http://将这里改成要跳转的域名">



    以上三种是也比较常见,比较常用的免费域名跳转代码运行平台Win9x WinNT Win2000 WinME WinXP。






  4. 4



    第四种:不隐藏域名跳转之后的地址 



    <html>



    <body>



    <meta http-equiv="refresh" content="0.1;url=将这里改成要跳转的域名">



    </body>



    </html> 






  5. 5



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



    <html>



    <frameset framespacing="0" border="0" rows="0" frameborder="0">



    <frame name="main" src="将这里改成要跳转的域名" scrolling="auto" noresize>



    </frameset>



    </html> 






  6. 6



    第六种:定时的域名跳转代码



    <meta http-equiv="refresh" content="3;rul=http://将这里改成要跳转的域名">



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



    <meta http-equiv="refresh" content="3;rul=http://将这里改成要跳转的域名">



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




发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容