日期:2014-05-16  浏览次数:20352 次

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>



------解决方案--------------------
IE7已经不支持这个功能了
这个也没多大作用,只是花俏而已,而且危险。。。容易被人钓鱼
------解决方案--------------------
IE7默认情况下是将“允许状态栏通过脚本更新”设置为禁用的,你可以在安全性里修改此设置