error跳转问题

浏览:840 发布日期:2014/06/25 分类:求助交流 关键字: error跳转
我用thinkphp3.2做了一个后台登陆页面,用户名或密码不对时会正常提示,但是在360极速浏览器上不会跳转到上一个页面,即不会执行location.href=href这行代码。具体代码如下:<div class="showMsg" style="text-align:center">
<h5>{$msgtitle}</h5>
<present name="message" >
<div class="content right" style="display:inline-block;display:-moz-inline-stack;zoom:1;*display:inline;max-width:330px">{$message}</div>
</present>
<present name="error" >
<div class="content wrong" style="display:inline-block; color:red;display:-moz-inline-stack;zoom:1;*display:inline;max-width:330px">{$error}</div>
</present>
<div class="bottom">
<a id="href" href="{$jumpUrl}"> <span id="wait">{$waitSecond}</span> 秒后自动跳转,如果没有自动跳转,请点击这里</a>
</div>
</div>
</body>
</html>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
var time = --wait.innerHTML;
if (time <= 0){
location.href = href;
clearInterval(interval);
}
}, 1000);
})();
</script>
在IE和FIREFOX上能正常跳转。
请thinkphp技术人员帮忙指点一下,不胜感激。
最佳答案
评论( 相关
后面还有条评论,点击查看>>