淘主机 发表于 2008-4-6 21:08:52

Html静态页面实现网页转向链接的方法

——————————————————————————
不隐藏转向之后的地址 代码一
——————————————————————————

<html>
<head>
<meta http-equiv=”Content-Language” content=”zh-cn”>
<meta HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=gb2312″>
<title></title>
</head>
<body>
<form name=loading>
< 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> <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>
<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()”,100);}
else
{window.location = “将这里改成要转入的网址”;}
}</SCRIPT>
</P></form>
</body>
</html>

——————————————————————————
不隐藏转向之后的地址 代码二
——————————————————————————


<html>
<body>
<script language=”javascript”>
<!–
function goToURL() { //v2.0
for (var i=0; i< (goToURL.arguments.length - 1); i+=2) //with arg pairs
eval(goToURL.arguments+”.location=’”+goToURL.arguments+”‘”);
document.returnvalue = false;
}
//–>
</script>
<body bgcolor=”#FFFFFF” onLoad=”goToURL(’parent’,'将这里改成要转入的网址’);return document.returnvalue”>
</body>
</html>

——————————————————————————
不隐藏转向之后的地址 代码三
——————————————————————————


<html>
<head>
<meta http-equiv=”Content-Language” content=”zh-CN”>
<meta HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=gb2312″>
<title></title>
</head>
<SCRIPT LANGUAGE=”javascript”>
<!– Start Code
var ver = navigator.appVersion;
if (ver.indexOf(”MSIE”) != -1)
{
window.location.href=”将这里改成要转入的网址”
}else
window.location.href=”将这里改成要转入的网址”
// End Code –>
</SCRIPT>
</html>


——————————————————————————
不隐藏转向之后的地址 代码四
——————————————————————————


<html>
<head>
<meta http-equiv=”Content-Language” content=”zh-CN”>
<meta HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=gb2312″>
<title></title>
</head>
<body>
<meta http-equiv=”refresh” content=”0.1;url=将这里改成要转入的网址”>
</body>
</html>


——————————————————————————
可隐藏转向之后的地址
——————————————————————————


<html>
<head>
<meta http-equiv=”Content-Language” content=”zh-CN”>
<meta HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=gb2312″>
<title></title>
</head>
<frameset framespacing=”0″ border=”0″ rows=”0″ frameborder=”0″>
<frame name=”main” src=”将这里改成要转入的网址” scrolling=”auto” noresize>
</frameset>
</html>
<head>
<title></title>
<meta name=”generator” content=”" />
<meta name=”keywords” content=”" />
<meta name=”description” content=”" /></head>
<frameset framespacing=”0″ border=”false” frameborder=”0″ cols=”1,*”>
<frame name=”frame_left” scrolling=”no” noresize src=”" target=”frame_main”>
<frame name=”frame_main” src=”/bbs” scrolling=”auto”>
<noframes>
</noframes>

淘主机 发表于 2012-4-24 21:47:02

延伸阅读:

[教程] PHP重定向(转向)到另一页面的方法
http://bbs.taohost.net/thread-10-1-1.html

[介绍] Godaddy的域名转向被国内封掉的问题 解决方法
http://bbs.taohost.net/thread-183-1-1.html

[代码] 域名所有页面301转向到另一域名相应页面的方法(ASP)
http://bbs.taohost.net/thread-1031-1-1.html
页: [1]
查看完整版本: Html静态页面实现网页转向链接的方法