Sign-up....

求网页显示时间的代码,时间能不断更新的,小时,分钟,秒,这样显示出来

求网页显示时间的代码,时间能不断更新的,小时,分钟,秒,这样显示出来

[36 byte] By [msdn] at [2007-8-15 10:04:25]
# 1 Re: 求网页显示时间的代码,时间能不断更新的,小时,分钟,秒,这样显示出来

没有见过

FLASH能实现

网页的没有见过

只知道获取时间的函数

<script language="vbscript">

Dim MyVar

MyVar = time

h=hour(time)

m=minute(time)

s=second(time)

msgbox h

msgbox m

msgbox s

</script>

5ucode at 2006-6-9 22:19:49 >
# 2 Re: 求网页显示时间的代码,时间能不断更新的,小时,分钟,秒,这样显示出来

windzjp给的是最好的。。

coolbird88 at 2006-6-9 23:44:40 >
# 3 Re: 求网页显示时间的代码,时间能不断更新的,小时,分钟,秒,这样显示出来

s = now.getSeconds()+1; //得到秒

这个地方不对,+1是为了测试用的,使用时要去掉,忘了去了,不好意思

应该是:

s = now.getSeconds(); //得到秒

windzjp at 2006-6-9 23:49:58 >
# 4 Re: 求网页显示时间的代码,时间能不断更新的,小时,分钟,秒,这样显示出来

我晕,广告也写错了!!

lastidea.net

windzjp at 2006-6-9 23:51:55 >

Web

All Classified