我在页面上加了一个gif图片,当点击按钮时显示他(就是一个时间条图片),可是在firefox下一旦提交location.href重新赋值,图片就不动了,IE就没有这个问题。有人知道应该怎么解决吗?执行start图片就显示,可是一但location.fref被赋值图片就不动了。注释掉就没问题。
<div id="loading" style="display:none">
<img src="/images/loading.gif"/>
</div>function start()
{
******
location.href="***";
return ;
}
<div id="loading" style="display:none">
<img src="/images/loading.gif"/>
</div>function start()
{
******
location.href="***";
return ;
}
setTimeout("start()",10)
进行下延时