四种ASP网页跳转代码

 

时间:2012-06-12 21:12来源:未知 输入:铜都风尘 点击: 32987 次
如果你要在服务器端跳转,可以这样: Response.Redirect(http://blog.163.com/power_1/) Response.End 如果你要在客户端跳转,可以这样: script language=java
 
如果你要在服务器端跳转,可以这样建立一个asp文件:
<%
Response.Redirect("http://54qq.net/qq/")
Response.End
%>

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

<script language="javascript" type="text/javascript">
window.location="http://54qq.net/qq/";
</script>

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

<meta http-equiv="refresh" content="3; url=http://54qq.net/qq/">
欢迎您的访问,3秒钟后自动跳转到
http://54qq.net/qq/

以上三种是也比较常见,比较常用的网页跳转代码,当然还有别的,大家可以自己收集。

第四种vbscript的跳转代码

<script language="VBScript">

location.href="http://54qq.net/qq/"

</script>


(责任编辑:admin)
posted @ 2016-08-27 16:59  Xander_1  阅读(10887)  评论(0编辑  收藏  举报