网神通电脑维修:电脑维修、数据恢复、解密加密、整机组装、维护升级、IT外包 、监控安装维护、网络维护、打印机共享与维修、网站建设与维护☑诚信 ☑效率 ☑快速 ☑低价 ☑专业 免费咨询:13927420089

别找了,Html网页自动跳转页面代码全在这里了

08 01月
作者:网神通|分类:电脑

方案一,用<meta>里直接写刷新语句:

<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="5;url=http://www.wstdn.com">
<title>正在进入,请稍等</title>
</head>
<body>

测试:html网页自动跳转代码<br/>

你可以在这里写下你想的一切东西!<br />

如:西北农林科技大学是一所985、211院校。<br />

</body>
</html>  


方案二,用java script脚本来跳转

<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.wstdn.com;}  
}</script> 
 </p> 
</form><p align="center">

测试:html网页自动跳转代码<br/>

你可以在这里写下你想的一切东西!<br />

如:西北农林科技大学是一所985、211院校。<br /><br />

如果您的浏览器不支持跳转,<a style="text-decoration: none" href="http://www.mycodes.net

"><font color="#FF0000">请点这里</font></a>.</p>
</body>
</html>




本文链接:http://www.wstdnwx.com/?id=279 转载需授权!

分享到:
浏览41.4k 评论0
返回
目录
返回
首页
网站怎么提高点击率 微软Windows7等操作系统即将停止服务,网络安全风险如何应对?

发表评论

扫一扫,加我为微信好友加我为微信好友

遇到问题?请给我们留言

请填写您的电话号码,我们将回复您电话

您是本站第51名访客 今日有0篇新文章 当前在线 6 人

分享:

支付宝

微信

歌曲 - 歌手
0:00