網站頁面跳轉代碼大全_第1頁
網站頁面跳轉代碼大全_第2頁
網站頁面跳轉代碼大全_第3頁
網站頁面跳轉代碼大全_第4頁
網站頁面跳轉代碼大全_第5頁
已閱讀5頁,還剩23頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、網站網頁跳轉代碼大全<一>三種網頁跳轉代碼:如果你要在服務器端跳轉,可以這樣:Response.Redirect()Response.End如果你要在客戶端跳轉,可以這樣:<script language="javascript" type="text/javascript">window.location=""</script>如果你要讓頁面顯示幾秒鐘之后跳轉,可以在html代碼的<head></head>部分加上這樣的代碼:(3秒鐘后自動跳轉到)以上三種是也比較常見,比較

2、常用的網頁跳轉代碼運行平臺Win9x WinNT Win2000 WinME WinXP。<二>幾段簡單的網頁跳轉代碼不隱藏轉向之后的地址 代碼一:<html><body><form name=loading><P align=center><FONT face=Arial color=#0066ff size=2>loading.</FONT> <INPUTstyle="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PA

3、DDING-BOTTOM: 0px; COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none;BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none"size=46 name=chart> <BR><INPUTstyle="BORDER-RIGHT: medium none; BORDER-TOP: medi

4、um none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM:medium none; TEXT-ALIGN: center"size=47 name=percent><SCRIPT>var bar=0var line="|"var amount="|"count()function count()bar=bar+2amount =amount + lineif (bar<99)setTimeout("count()",100);el

5、sewindow.location = "將這里改成要轉入的網址"</SCRIPT></P></form></body></html>不隱藏轉向之后的地址 代碼二:<html><body><script language="javascript"><!-function goToURL() /v2.0(goToURL.arguments+".location=''"+goToURL.argumentsi+1+"

6、;''");document.returnvalue = false;/-></script><body bgcolor="#FFFFFF"></body></html>不隱藏轉向之后的地址 代碼三:<html><SCRIPT LANGUAGE="javascript"><!- Start Codevar ver = navigator.appVersion;if (ver.indexOf("MSIE") != -1)else

7、/ End Code -></SCRIPT></html>不隱藏轉向之后的地址 代碼四:<html><body><meta http-equiv="refresh" content="0.1;url=將這里改成要轉入的網址"></body></html>可隱藏轉向之后的地址:<html><frameset framespacing="0" border="0" rows="0" frame

8、border="0"><frame name="main" src="將這里改成要轉入的網址" scrolling="auto" noresize></frameset></html><三>網頁跳轉<meta http-equiv="refresh" content="3;rul=跳轉的網頁">此代碼可以讓網頁在一定的時間內,跳轉到另外一個網頁上,其中content=" 為跳轉前停暫的秒數,rul=

9、為跳轉的網址<meta http-equiv="refresh" content="3;rul=跳轉的網頁">此代碼可以讓網頁在一定的時間內,跳轉到另外一個網頁上,其中content=" 為跳轉前停暫的秒數,rul= 為跳轉的網址=<html><head><title>網頁跳轉</title><meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi"></hea

10、d><body></body></html>=1,頁面自動刷新:把如下代碼加入<head>區(qū)域中<meta http-equiv="refresh" content="20">,其中20指每隔20秒刷新一次頁面.20指隔20秒后跳轉到頁面。=<html><head><title>正在進入>>> Loading>>> </title></head><body bgcolor="#F

11、FFFFF" text="#000000"><p> </p><tr> <td width=724><p align=center><font color="red" size="2">正在進入,請等待,謝謝.</font></p></td></tr><tr><td width="724"><p align=center><form name

12、=loading><div align=center><p><input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:rgb(124,119,119);background-color:white; padding:0px; border-style:none;"><br> <input type=text name=percent size=46 style="color:rgb(138

13、,134,134); text-align:center; border-width:medium;border-style:none;"><script>var bar = 0var line = "|"var amount ="|"count()function count()bar= bar+2amount =amount     +     lineif (bar<99)setTimeout("count()",1

14、0);elsewindow.location = ""</script></body></html>=如果要cgi的文件,可以用以下方式:#!/usr/bin/perlprint "Content-type:text/html "print<<END;<html><head><title>正在進入 >>> Loading>>> </title></head><body bgcolor="#FFFF

15、FF" text="#000000"><p> </p><tr> <td width=724><p align=center></p><p align=center><b><font size="6">論壇新地址:</font><font color="red" size="6"> !</font></b></p><p align

16、=center><b><font size="6">正在進入,請等待,謝謝.</font></b></p></td></tr><tr><td width="724"><p align=center><form name=loading><div align=center><p><input type=text name=chart size=46 style="font-fami

17、ly:Arial; font-weight:bolder; color:rgb(124,119,119);background-color:white; padding:0px;border-style:none;"><br> <input type=text name=percent size=46 style="color:rgb(138,134,134); text-align:center; border-width:medium;border-style:none;"><script>var bar = 0var

18、 line = "|"var amount ="|"count()function count()bar= bar+2amount =amount     +     lineif (bar<99)setTimeout("count()",10);elsewindow.location = ""</script></body></html>ENDexit;=以 htm 可以用以下方式:<h

19、tml><body><script language=&apos;javascript&apos;>document.location=&apos;</body></html>以 asp     可以用以下方式:<%response.redirect "%><四>1. 在<head></head>區(qū)域加入代碼: <meta http-equiv=Pragma content=no-cache><Meta

20、2. JavaScript代碼: <SCRIPT LANGUAGE="JavaScript"><!- BeginredirTime = "3000"redirURL = ""/     End -></script><body>3. JavaScript代碼: <html><head><title>稍候。</title></head><body><script langu

21、age='javascript'>document.location = '跳轉地址'</script></body></html>4. 帶進度條的頁面跳轉代碼代碼: <html><head><meta http-equiv="Content-Language" content="zh-cn"><meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset

22、=gb2312"><title>Johnny創(chuàng)作中心</title></head><body><form name=loading><P align=center><FONT face=Arial color=#0066ff size=2>loading.</FONT> <INPUTstyle="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR:

23、 #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none;BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none"size=46 name=chart> <BR><INPUTstyle="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: med

24、ium none; COLOR: #0066ff; BORDER-BOTTOM:medium none; TEXT-ALIGN: center"size=47 name=percent><SCRIPT>var bar=0var line="|"var amount="|"count()function count()bar=bar+2amount =amount + lineif (bar<99)setTimeout("count()",100);elsewindow.location = "

25、;"</SCRIPT></P></form></body></html><五>網頁跳轉方法+代碼1. window.location<body onload=window.location="(請換成你的網址)"></body>或(此法應用范圍較廣,并可應用在一般后臺編輯器中)2. META標志/其中content后面的阿拉伯數字是代表過幾秒中鐘轉入目標網頁。3. 利用框架隱藏轉向地址(此方法不便用 dreamweaver 編輯,請使用記事本或其他文本編輯器處理)<

26、;html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>知覓_朱高站</title></head><frameset rows="*,0" frameborder="no" border="0" framespacing="0"><frame src="(請換成你的網

27、址)" name="mainFrame" id="mainFrame"><frame src="" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame"></frameset><noframes><body>請用IE瀏覽</body></noframes></html>&

28、lt;六><html><head><title>頁面跳轉</title></head><body>此頁面三秒后跳轉到</body></html><七>html中跳轉最全代碼程序代碼<html><head><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta http-equiv="Content-Type" c

29、ontent="text/html; charset=gb2312"><title>正在進入</title></head><body><form name=loading><p align=center> <font color="#0066ff" size="2">正在進入,請稍等</font><font color="#0066ff" size="2"face="Arial&

30、quot;>.</font><input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;"><input type=text name=percent size=47 style="color:#0066ff; text-align:center; border-width:mediu

31、m; border-style:none;"><script>var bar=0var line="|"var amount="|"count()function count()bar=bar+2amount =amount + lineif (bar<99)setTimeout("count()",100);elsewindow.location = ""</script></p></form><p align="center"> 如果您的瀏覽器不支持跳轉,<a style="text-decoration: none" href="color="#FF0000">請點這里</font></a>.</p></body></htm

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論