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

WBOY
發布: 2016-06-24 12:14:05
原創
890 人瀏覽過





正在进入


 
 

 正在进入,请稍等...
       高血压吃什么好
   
  
   
  <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學習者快速成長!