当前位置: 代码迷 >> HTML/CSS >> 大家来帮帮小弟我,状态栏为什么没有显示
  详细解决方案

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

热度:190   发布时间:2012-02-29 16:44:10.0
大家来帮帮我,状态栏为什么没有显示

下面是我的代码,这个代码想在状态栏显示当前时间,但是在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啦
  相关解决方案