|
  
- UID
- 133
- 帖子
- 51
- 精华
- 1
- 积分
- 186
- 金币
- 55
- 威望
- 2
- 贡献
- 0

|
数字化的时钟代码
<span id="liveclock" style"=width: 109px; height: 15px"></span>7 g: f- W" t$ C$ _& r
<SCRIPT language=javascript>4 V8 u3 N! x4 w. j1 s
function www_helpor_net()0 m6 q4 y0 h8 h, F# n
{
4 f" h0 @4 F8 n8 W. O% ?var Digital=new Date()$ J; i ^) O F ?' ]+ h- W
var hours=Digital.getHours()
7 U1 f5 Y- ], z2 h& J$ lvar minutes=Digital.getMinutes()
4 \% r% K6 R" Ovar seconds=Digital.getSeconds()1 G: e0 W- \3 o% u- l7 m5 Z
( i+ k W0 }: r$ x' w2 Zif(minutes<=9)' \& }8 f! |- ?) Z4 K
minutes="0"+minutes, b+ {& M% }" f& w
if(seconds<=9), Q4 W$ ?! D" y) r/ W% K' ]
seconds="0"+seconds) c1 V* x4 ]" W3 q
myclock="现在时刻:<font size='5' face='Arial black'>"+hours+":"+minutes+":"+seconds+"</font>", x$ _' ]3 w/ q2 Y" X
if(document.layers){document.layers.liveclock.document.write(myclock)5 P5 M, H$ S% k% n$ g
document.layers.liveclock.document.close()
3 E: V3 r$ }- J5 v}else if(document.all)1 S- l; T# G$ a/ Q8 r' f E4 C; O
liveclock.innerHTML=myclock1 k" y' a; ]- k3 E
setTimeout("www_helpor_net()",1000)9 w/ Q8 h! [+ R1 [6 u( C
}6 y# T @4 ~4 S9 {3 S5 ^9 G
www_helpor_net(); d6 ^4 I" q+ o2 ?; G
//-->3 c. e3 [7 W7 ~6 Y2 f8 z4 s K3 G" ~
</SCRIPT> |
|