如何做网页跳转
很急!, 我做了一个新的网页,可是旧的网页还在,我想在旧的网页上面加一个redirect,使到人家到了旧的网页上能在短时间内自动转到新的网页去,有人能告诉我应该怎么做吗,谢谢!!!!!!!非常感谢.[ 本帖最后由 Nimm2 于 2008-2-13 23:33 编辑 ] 网页自动跳转嘛
给一段 html 的
自己懒,没试过,是同学那里要来得的哈:D :D
方案一
<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="0.1;url=http://www.dreamershop.com">
<title></title>
</head>
<body>
</body>
</html>
方案二
<html>
<head>
<meta http-equiv="Content-Type" content="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">...</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:medium; border-style:none;">
<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 = "http://www.dreamershop.com";}
}</script>
</p>
</form>
<p align="center"> 如果您的浏览器不支持跳转,<a style="text-decoration: none" href="http://www.dreamershop.com"><font color="#FF0000">请点这里</font></a>.</p>
</body>
</html> 好强,html学过100次了,就是记不住……程序之挺c和asm的! 再怎么说欧也算是Info专业的,虽然不硬性要求,但总要用到,所以每种语言都大概学了点:( :(
当然主要还是用 C++ 和 Java,汇编倒是有一学期的必修,但欧对电子控制实在没什么兴趣$汗$ $汗$ 我以前学数学的,为了快一点速度,很多东西都要用asm写……唉,怕就怕导师要写论文啊……要是用asm写的程序比c快5%,他的论文就ok了,咱们就死惨了 在网页做跳转不好, 这样搜索引擎收录的就是那个执行跳转的空页面. 我以前也这么干, 结果过了一段时间, 在搜索引擎上面看到收录页面的内容是"正在跳转..."$汗$
建议在Web服务器里面加目录的Umleitung或者Alias, 这样效率高, 而且适合网页推广
回复 #4 Nimm2 的帖子
汇编有了新名字了,叫做集结号 $汗$ $汗$ $汗$
页:
[1]