




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、網(wǎng)站網(wǎng)頁跳轉(zhuǎn)代碼大全<一>三種網(wǎng)頁跳轉(zhuǎn)代碼:如果你要在服務(wù)器端跳轉(zhuǎn),可以這樣:Response.Redirect()Response.End如果你要在客戶端跳轉(zhuǎn),可以這樣:<script language="javascript" type="text/javascript">window.location=""</script>如果你要讓頁面顯示幾秒鐘之后跳轉(zhuǎn),可以在html代碼的<head></head>部分加上這樣的代碼:(3秒鐘后自動(dòng)跳轉(zhuǎn)到)以上三種是也比較常見,比較
2、常用的網(wǎng)頁跳轉(zhuǎn)代碼運(yùn)行平臺(tái)Win9x WinNT Win2000 WinME WinXP。<二>幾段簡(jiǎn)單的網(wǎng)頁跳轉(zhuǎn)代碼不隱藏轉(zhuǎn)向之后的地址 代碼一:<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 = "將這里改成要轉(zhuǎn)入的網(wǎng)址"</SCRIPT></P></form></body></html>不隱藏轉(zhuǎn)向之后的地址 代碼二:<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>不隱藏轉(zhuǎn)向之后的地址 代碼三:<html><SCRIPT LANGUAGE="javascript"><!- Start Codevar ver = navigator.appVersion;if (ver.indexOf("MSIE") != -1)else
7、/ End Code -></SCRIPT></html>不隱藏轉(zhuǎn)向之后的地址 代碼四:<html><body><meta http-equiv="refresh" content="0.1;url=將這里改成要轉(zhuǎn)入的網(wǎng)址"></body></html>可隱藏轉(zhuǎn)向之后的地址:<html><frameset framespacing="0" border="0" rows="0" frame
8、border="0"><frame name="main" src="將這里改成要轉(zhuǎn)入的網(wǎng)址" scrolling="auto" noresize></frameset></html><三>網(wǎng)頁跳轉(zhuǎn)<meta http-equiv="refresh" content="3;rul=跳轉(zhuǎn)的網(wǎng)頁">此代碼可以讓網(wǎng)頁在一定的時(shí)間內(nèi),跳轉(zhuǎn)到另外一個(gè)網(wǎng)頁上,其中content=" 為跳轉(zhuǎn)前停暫的秒數(shù),rul=
9、為跳轉(zhuǎn)的網(wǎng)址<meta http-equiv="refresh" content="3;rul=跳轉(zhuǎn)的網(wǎng)頁">此代碼可以讓網(wǎng)頁在一定的時(shí)間內(nèi),跳轉(zhuǎn)到另外一個(gè)網(wǎng)頁上,其中content=" 為跳轉(zhuǎn)前停暫的秒數(shù),rul= 為跳轉(zhuǎn)的網(wǎng)址=<html><head><title>網(wǎng)頁跳轉(zhuǎn)</title><meta http-equiv="refresh" content="0;url=cgi-bin/leoboard.cgi"></hea
10、d><body></body></html>=1,頁面自動(dòng)刷新:把如下代碼加入<head>區(qū)域中<meta http-equiv="refresh" content="20">,其中20指每隔20秒刷新一次頁面.20指隔20秒后跳轉(zhuǎn)到頁面。=<html><head><title>正在進(jìn)入>>> Loading>>> </title></head><body bgcolor="#F
11、FFFFF" text="#000000"><p> </p><tr> <td width=724><p align=center><font color="red" size="2">正在進(jìn)入,請(qǐng)等待,謝謝.</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>正在進(jìn)入 >>> 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">正在進(jìn)入,請(qǐng)等待,謝謝.</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='javascript'>document.location='</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 = '跳轉(zhuǎn)地址'</script></body></html>4. 帶進(jìn)度條的頁面跳轉(zhuǎn)代碼代碼: <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><五>網(wǎng)頁跳轉(zhuǎn)方法+代碼1. window.location<body onload=window.location="(請(qǐng)換成你的網(wǎng)址)"></body>或(此法應(yīng)用范圍較廣,并可應(yīng)用在一般后臺(tái)編輯器中)2. META標(biāo)志/其中content后面的阿拉伯?dāng)?shù)字是代表過幾秒中鐘轉(zhuǎn)入目標(biāo)網(wǎng)頁。3. 利用框架隱藏轉(zhuǎn)向地址(此方法不便用 dreamweaver 編輯,請(qǐng)使用記事本或其他文本編輯器處理)<
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="(請(qǐng)換成你的網(wǎng)
27、址)" name="mainFrame" id="mainFrame"><frame src="" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame"></frameset><noframes><body>請(qǐng)用IE瀏覽</body></noframes></html>&
28、lt;六><html><head><title>頁面跳轉(zhuǎn)</title></head><body>此頁面三秒后跳轉(zhuǎn)到</body></html><七>html中跳轉(zhuǎn)最全代碼程序代碼<html><head><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta http-equiv="Content-Type" c
29、ontent="text/html; charset=gb2312"><title>正在進(jìn)入</title></head><body><form name=loading><p align=center> <font color="#0066ff" size="2">正在進(jìn)入,請(qǐng)稍等</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"> 如果您的瀏覽器不支持跳轉(zhuǎn),<a style="text-decoration: none" href="color="#FF0000">請(qǐng)點(diǎn)這里</font></a>.</p></body></htm
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 江西省南昌市三校聯(lián)考2025屆化學(xué)高一下期末達(dá)標(biāo)檢測(cè)模擬試題含解析
- 2025屆河北正定弘文中學(xué)高一化學(xué)第二學(xué)期期末考試模擬試題含解析
- 農(nóng)技項(xiàng)目資金管理辦法
- 公寓用品檔案管理辦法
- 公共收益處置管理辦法
- 民政救濟(jì)專戶管理辦法
- 出口毛巾加工管理辦法
- 視覺識(shí)別技術(shù)在串番茄采摘機(jī)器人設(shè)計(jì)與試驗(yàn)中的應(yīng)用
- 十堰市總承包管理辦法
- 變電站設(shè)計(jì)與施工指導(dǎo)手冊(cè)
- 無創(chuàng)眶周抗衰規(guī)范
- 暑假假期安全教育(課件)-小學(xué)生主題班會(huì)
- 2024年1月黑龍江高中學(xué)業(yè)水平合格考政治試卷真題(含答案詳解)
- 供應(yīng)室護(hù)理進(jìn)修匯報(bào)總結(jié)
- 儲(chǔ)糧害蟲與技術(shù)和化學(xué)防治
- 自適應(yīng)前照燈控制系統(tǒng)
- 電梯招標(biāo)文件示范文本
- 上海市安裝工程預(yù)算定額(2000)工程量計(jì)算規(guī)則
- 街道、鎮(zhèn)、區(qū)道路保潔及垃圾轉(zhuǎn)運(yùn)服務(wù)采購項(xiàng)目服務(wù)方案(投標(biāo)方案)
- GB/T 16886.10-2024醫(yī)療器械生物學(xué)評(píng)價(jià)第10部分:皮膚致敏試驗(yàn)
- 醫(yī)院感染管理制度制度匯編
評(píng)論
0/150
提交評(píng)論