




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
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。<二>幾段簡單的網(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)入,請等待,謝謝.</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)入,請等待,謝謝.</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="(請換成你的網(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 編輯,請使用記事本或其他文本編輯器處理)<
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="(請換成你的網(wǎng)
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>頁面跳轉(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)入,請稍等</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">請點(diǎn)這里</font></a>.</p></body></htm
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(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)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025屆貴州省北師大貴陽附中高一化學(xué)第二學(xué)期期末復(fù)習(xí)檢測試題含解析
- 靜止齲治療新技術(shù)-洞察及研究
- 江西省南昌五校2025屆高一化學(xué)第二學(xué)期期末質(zhì)量跟蹤監(jiān)視試題含解析
- 甘肅省武威市第二中學(xué) 2025年高一下化學(xué)期末復(fù)習(xí)檢測模擬試題含解析
- 上海市格致初級(jí)中學(xué)2025屆化學(xué)高一下期末復(fù)習(xí)檢測試題含解析
- 山東省夏津一中2025屆高一下化學(xué)期末學(xué)業(yè)質(zhì)量監(jiān)測模擬試題含解析
- 虛擬現(xiàn)實(shí)心理效應(yīng)-第3篇-洞察及研究
- 高維數(shù)據(jù)在經(jīng)濟(jì)分析中的挑戰(zhàn)-洞察闡釋
- 藥物遞送系統(tǒng)評(píng)估方法-洞察闡釋
- 氣候變化標(biāo)識(shí)設(shè)計(jì)-洞察及研究
- 公司消防網(wǎng)格化管理制度
- 5.3.1探究酵母菌的呼吸方式課件高一上學(xué)期生物人教版必修1
- 護(hù)士職業(yè)溝通技巧課件
- 農(nóng)村村務(wù)管理課件
- 2025至2030中國氧化鋁纖維行業(yè)供需趨勢及投資風(fēng)險(xiǎn)報(bào)告
- 2024年佛山市南海區(qū)圖書館招聘考試真題
- NAMPT調(diào)控NAD代謝影響椎間盤退變的分子機(jī)制與干預(yù)策略研究
- 地方病防治測試題及答案
- 健康教育大講堂:跌倒
- AFU阿芙精油品牌手冊
- T/CHES 43-2020水利水電工程白蟻實(shí)時(shí)自動(dòng)化監(jiān)測預(yù)警系統(tǒng)技術(shù)規(guī)范
評(píng)論
0/150
提交評(píng)論