域名跳转


由于更换域名,新的二级域名为zzsign.dbonly.com,但原二级域名sign.dbonly.com不能访问,
于是设置了跳转
代码如下:

<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<title></title>
</head>
<body>
<meta http-equiv="refresh" content="0.1;url=http://zzsign.dbonly.com">
</body>
</html>

这样访问sign.dbonly.com就会自动跳转到zzsign.dbonly.com

其他跳转代码:

<html>
<head>
<style type="text/css">
</style>
</head>
<body>提示:正在为您跳转到豆瓣不小心......<script type="text/javascript">setTimeout('location.href="http://dbonly.com";',2000)
</script>
</body>
</html>

带进度条效果:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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://zzsign.dbonly.com";}
}</script>
</p>
</form>
<p align="center">域名已更换,正在为您跳转...</p>
<p align="center"> 如果您的浏览器不支持跳转,<a style="text-decoration: none" href="http://zzsign.dbonly.com"><font color="#FF0000">请点这里</font></a>.</p>
</body>
</html>

声明:豆瓣不小心|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - 域名跳转


Don't Worry,Be Happy