>  기사  >  웹 프론트엔드  >  为什么我的代码不能进行跳转呢_html/css_WEB-ITnose

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

WBOY
WBOY원래의
2016-06-24 12:14:05889검색





正在进入


 
 

 正在进入,请稍等...
       高血压吃什么好
   
  
   
  <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>

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

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.