四種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)
相關文章
相關標籤/搜索