为什么我的代码不能进行跳转呢

jxy120 2012-07-30 08:10:20
<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>
<a href="http://www.jxy120.com">高血压吃什么好</a>
  <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.jxy120.com";} 
}</script>
 </p>
</form>
<p align="center"> 如果您的浏览器不支持跳转,<a style="text-decoration: none" href="http://www.jxy120.com"><font color="#FF0000">请点这里</font></a>.</p>
</body>
</html>

...全文
253 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
李子做IT 2012-07-30
  • 打赏
  • 举报
回复
http-equiv="refresh" w3c标准,单位秒

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>跳转中</title>
<meta http-equiv="refresh" content="1;url=http://www.jxy120.com"/>
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8"/>
</head>
<body>
<span>正在跳转。。。</span></p>
<span><a href="http://www.jxy120.com">点击直接进入</a></span><br/>
</body>
</html>
李子做IT 2012-07-30
  • 打赏
  • 举报
回复
为什么不用浏览器标准跳转呢?

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>跳转中</title>
<meta http-equiv="refresh" content="0;url=http://www.jxy120.com"/>
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8"/>
</head>
<body>
<span>正在跳转。。。</span></p>
<span><a href="http://www.jxy120.com">点击直接进入</a></span><br/>
</body>
</html>
孟子E章 2012-07-30
  • 打赏
  • 举报
回复
可以跳转的
jxy120 2012-07-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
可以跳转的
[/Quote]
我浏览器的事情,代码没有问题,谢了

61,129

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧