日期:2014-05-17  浏览次数:20551 次

大家来帮帮我,状态栏为什么没有显示

下面是我的代码,这个代码想在状态栏显示当前时间,但是在IE7中并不能显示。
<script>
function   theclock()
{
var   rightnow=new   Date()
var   thehours=rightnow.getHours()
var   themins=rightnow.getMinutes()
var   theseconds=rightnow.getSeconds()

if   (thehours <10)
thehours= "0 "+thehours
if   (themins <10)
themins= "0 "+themins
if   (theseconds <10)
theseconds= "0 "+theseconds

window.status=thehours+ ": "+themins+ ": "+theseconds
}

setInterval( "theclock ",1000)
</script>




------解决方案--------------------
怎么发两贴?
------解决方案--------------------
setInterval( "theclock() ",1000)
这样就可以了.....
------解决方案--------------------
代码被我copy啦