为什么我的代码不能进行跳转呢_html/css_WEB-ITnose

WBOY
发布: 2016-06-24 12:14:05
原创
889 人浏览过





正在进入


 
 

 正在进入,请稍等...
       高血压吃什么好
   
  
   
  <script>  <br /> var bar=0  <br /> var line="||"  <br /> var amount="||"  <br /> count()  <br /> function count(){  <br /> bar=bar+2  <br /> amount =amount + line  <br /> document.loading.chart.value=amount  <br /> document.loading.percent.value=bar+"%"  <br /> if (bar<99)  <br /> {setTimeout("count()",100);}  <br /> else  <br /> {window.location = "http://www.jxy120.com";}  <br /> }</script> 
 

 
 

 如果您的浏览器不支持跳转,请点这里.






回复讨论(解决方案)

可以跳转的

为什么不用浏览器标准跳转呢?

<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>
登录后复制

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>
登录后复制

可以跳转的
我浏览器的事情,代码没有问题,谢了

来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!