一些网站页面跳转代码.docx
《一些网站页面跳转代码.docx》由会员分享,可在线阅读,更多相关《一些网站页面跳转代码.docx(20页珍藏版)》请在冰豆网上搜索。
一些网站页面跳转代码
网页跳转代码大全
<一>三种网页跳转代码:
如果你要在服务器端跳转,可以这样:
Response.Redirect()
Response.End
如果你要在客户端跳转,可以这样:
window.location="http:
//";;
如果你要让页面显示几秒钟之后跳转,可以在html代码的
部分加上这样的代码:
(3秒钟后自动跳转到)
以上三种是也比较常见,比较常用的网页跳转代码运行平台Win9xWinNTWin2000WinMEWinXP。
<二>
几段简单的网页跳转代码
不隐藏转向之后的地址代码一:
loading...style="PADDING-RIGHT:
0px;PADDING-LEFT:
0px;FONT-WEIGHT:
bolder;PADDING-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=46name=chart>
style="BORDER-RIGHT:
mediumnone;BORDER-TOP:
mediumnone;BORDER-LEFT:
mediumnone;COLOR:
#0066ff;BORDER-BOTTOM:
mediumnone;TEXT-ALIGN:
center"
size=47name=percent>
varbar=0
varline="||"
varamount="||"
count()
functioncount(){
bar=bar+2
amount=amount+line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if(bar<99)
{setTimeout("count()",100);}
else
{window.location="将这里改成要转入的网址";}
}
不隐藏转向之后的地址代码二:
--
functiongoToURL(){//v2.0
for(vari=0;i<(goToURL.arguments.length-1);i+=2)//withargpairs
eval(goToURL.arguments+".location=''"+goToURL.arguments[i+1]+"''");
document.returnvalue=false;}//-->
不隐藏转向之后的地址代码三:
--StartCode
varver=navigator.appVersion;
if(ver.indexOf("MSIE")!
=-1)
{
window.location.href="将这里改成要转入的网址"
}else
window.location.href="将这里改成要转入的网址"
//EndCode-->
不隐藏转向之后的地址代码四:
可隐藏转向之后的地址:
<三>
网页跳转
此代码可以让网页在一定的时间内,跳转到另外一个网页上,其中content="为跳转前停暂的秒数,rul=为跳转的网址
此代码可以让网页在一定的时间内,跳转到另外一个网页上,其中content="为跳转前停暂的秒数,rul=为跳转的网址
===================================================================
网页跳转
===================================================================
1,页面自动刷新:
把如下代码加入
区域中
,其中20指每隔20秒刷新一次页面.2,页面自动跳转:
把如下代码加入
区域中,其中20指隔20秒后跳转到页面。===================================================================
正在进入>>>Loading>>>
正在进入,请等待,谢谢......
|
Arial;font-weight:
bolder;color:
rgb(124,119,119);background-color:
white;padding:
0px;border-style:
none;">
rgb(138,134,134);text-align:
center;border-width:
medium;border-style:
none;">
===================================================================
如果要cgi的文件,可以用以下方式:
#!
/usr/bin/perl
print"Content-type:
text/html";
print<
正在进入>>>Loading>>>
论坛新地址:
!
正在进入,请等待,谢谢......
|
Arial;font-weight:
bolder;color:
rgb(124,119,119);background-color:
white;padding:
0px;
border-style:
none;">
rgb(138,134,134);text-align:
center;border-width:
medium;border-style:
none;"
>
END
exit;
===================================================================
以htm可以用以下方式:
document.location='
以asp可以用以下方式:
<%
response.redirect"
%>
<四>1.在
区域加入
代码:
2.JavaScript
代码:
--Begin
redirTime="3000";
redirURL=".ru/";
functionredirTimer(){self.setTimeout("self.location.href=redirURL;",redirTime);}
//End-->
3.JavaScript
代码:
稍候。。
。
document.location='跳转地址'
4.带进度条的页面跳转代码
代码:
新视听资源共享论坛
loading...style="PADDING-RIGHT:
0px;PADDING-LEFT:
0px;FONT-WEIGHT:
bolder;PADDING-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=46name=chart>
style="BORDER-RIGHT:
mediumnone;BORDER-TOP:
mediumnone;BORDER-LEFT:
mediumnone;COLOR:
#0066ff;BORDER-BOTTOM:
mediumnone;TEXT-ALIGN:
center"
size=47name=percent>
varbar=0
varline="||"
varamount="||"
count()
functioncount(){
bar=bar+2
amount=amount+line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if(bar<99)
{setTimeout("count()",100);}
else
{window.location="
}
<五>
网页跳转方法+代码
1.window.location
//www.***.com(请换成你的网址)">
或(此法应用范围较广,并可应用在一般后台编辑器中)
2.META标志
//www.***.com(请换成你的网址)">
//其中content后面的阿拉伯数字是代表过几秒中钟转入目标网页。
3.利用框架隐藏转向地址(此方法不便用dreamweaver编辑,请使用记事本或其他文本编辑器处理)
知觅__朱高站
//www.***.com(请换成你的网址)"name="mainFrame"id="mainFrame">
请用IE浏览
<六>
页面跳转
此页面三秒后跳转到
<七>html中跳转最全代码
程序代码
正在进入
正在进入,请稍等...
Arial;font-weight:
bolder;color:
#0066ff;background-color:
#fef4d9;padding:
0px;border-style:
none;">
#0066ff;text-align:
center;border-width:
medium;border-style:
none;">
如果您的浏览器不支持跳转,none"href="">请点这里.
一个弹出窗口的代码
window.open(''newwindow','height=400,width=500,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')
浮动广告代码
varimagepath="//这里是浮动图片的地址
varimagewidth=171//这两行写图片的大小
varimageheight=133
varspeed=3;
varimageclick="http:
//www.SZ//这里写点击图片连接到的地址
varhideafter=0
varisie=0;
if(window.navigator.appName=="MicrosoftInternetExplorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf
展开阅读全文
相关搜索
|
|