四种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的跳转代码javascript

<script language="VBScript">html

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

</script>服务器

(责任编辑:admin)
相关文章
相关标签/搜索