网站页面跳转代码大全_第1页
网站页面跳转代码大全_第2页
网站页面跳转代码大全_第3页
网站页面跳转代码大全_第4页
网站页面跳转代码大全_第5页
已阅读5页,还剩23页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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>区域中<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>区域加入代码: <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创作中心</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. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论