主题:高手帮帮忙啊 !!!哪里的错误?
<script language="vbscript">
showtime()
sub showtime()
window.status=date&""&time
setTimeOut "showtime()",1000
end sub
a=time()
a=string(200," ")&a
i=0
sub sub1
window.status=right(a,i)
if i>len(a) then
i=0
else
i=i+1
end if
settimeout "sub1",1000
end sub
sub1
</script>
我想实现在地址栏里时间每秒都动,而且从左边跑到右边,可为什么运行出来不对?
showtime()
sub showtime()
window.status=date&""&time
setTimeOut "showtime()",1000
end sub
a=time()
a=string(200," ")&a
i=0
sub sub1
window.status=right(a,i)
if i>len(a) then
i=0
else
i=i+1
end if
settimeout "sub1",1000
end sub
sub1
</script>
我想实现在地址栏里时间每秒都动,而且从左边跑到右边,可为什么运行出来不对?