1.带进度条的页面转向代码
<html>
<head>
<title>Vegas</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
</head>
<body>
<form name="loading" ID="Form1">
<p align=center ><img border="1" src="Vegas.jpg"></p>
<P align="center"><FONT face="Arial" color="#0066ff" size="2">loading</FONT> <INPUT 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="46" name="chart" ID="Text1">
<BR>
<INPUT style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center"
size="47" name="percent" ID="Text2">
<SCRIPT>
var bar=0
var line="||"
var amount="||"
count()
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",1);}
else
{window.location = "http://10.91.51.33/vegas";}
}</SCRIPT>
</P>
</form>
<p align="center">
<Font size="2">如果您的浏览器不支持跳转,</Font><a style="TEXT-DECORATION: none" href="http://10.91.51.33/vegas"><font color="#ff0000" size="2">请点这里</font></a>.</p>
</body>
</html>
<head>
<title>Vegas</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
</head>
<body>
<form name="loading" ID="Form1">
<p align=center ><img border="1" src="Vegas.jpg"></p>
<P align="center"><FONT face="Arial" color="#0066ff" size="2">loading</FONT> <INPUT 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="46" name="chart" ID="Text1">
<BR>
<INPUT style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center"
size="47" name="percent" ID="Text2">
<SCRIPT>
var bar=0
var line="||"
var amount="||"
count()
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",1);}
else
{window.location = "http://10.91.51.33/vegas";}
}</SCRIPT>
</P>
</form>
<p align="center">
<Font size="2">如果您的浏览器不支持跳转,</Font><a style="TEXT-DECORATION: none" href="http://10.91.51.33/vegas"><font color="#ff0000" size="2">请点这里</font></a>.</p>
</body>
</html>
2.
如果是meta里的刷新功能实现跳转,可以用:
function a()
{
window.open("http://www.668cp.org")
}
</script>
------------------------------------- <meta http-equiv="refresh" content="3;URL=http://www.668cp.org">
content="3;"表示3秒后转向,URL=后面接上要转向的地址
此方法也可用于在指定时间内刷新本页。去掉URL=就行了
<META HTTP-EQUIV="Refresh" CONTENT="时间;URL=地址">
就OK了..
1,页面自动刷新:把如下代码加入
<head>区域中<meta http-equiv="refresh" content="20">,其中20指每隔20秒刷新一次页面.2,页面自动跳转:把如下代码加入
<head>区域中<meta http-equiv="refresh" content="20;url=http://www.668cp.org">,其中20指隔20秒后跳转到http://www.668cp.org页面。还可以用javascript的方式,保留原来的页面,弹出新的
3,
function a()
{
window.open("http://www.668cp.org")
}
</script>
------------------------------------- <meta http-equiv="refresh" content="3;URL=http://www.668cp.org">
content="3;"表示3秒后转向,URL=后面接上要转向的地址
此方法也可用于在指定时间内刷新本页。去掉URL=就行了
如果要立即转向别的页面可以用如下方法
---------------------------------------
在
<META HTTP-EQUIV="Refresh" CONTENT="时间;URL=地址">
就OK了..
相关文章
暂无评论...