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

|
数字化的时钟代码
<span id="liveclock" style"=width: 109px; height: 15px"></span>3 J1 U0 p4 p* E! D
<SCRIPT language=javascript>! H7 X* o6 W! Z( h5 y
function www_helpor_net()
* y/ T" |0 `' \{
; b( a; x% M; L( g: u; A( }var Digital=new Date()
/ c+ Z J6 N0 @) }var hours=Digital.getHours()
: W s7 q; g' fvar minutes=Digital.getMinutes()
/ @9 v* S& A4 L" g' \# i- Gvar seconds=Digital.getSeconds()& @3 T0 V; U* X6 L1 |) n D
7 }. |. _( t7 M3 {- |% C* ]; _0 }
if(minutes<=9)
& L" x% o4 a8 ^minutes="0"+minutes
; ^9 J: s+ P! X" ^6 C2 pif(seconds<=9)
% J0 e9 Y- x& g/ X' n; {% hseconds="0"+seconds
N* y8 \0 J5 h) emyclock="现在时刻:<font size='5' face='Arial black'>"+hours+":"+minutes+":"+seconds+"</font>"7 X" @" T' ?8 f
if(document.layers){document.layers.liveclock.document.write(myclock)% l0 ]% b5 `3 o3 G% h7 _
document.layers.liveclock.document.close()! G$ A) e- B7 [- x2 X# Z0 @
}else if(document.all) `3 E% U- Z( v( E
liveclock.innerHTML=myclock' b6 [( Y+ n( R6 x
setTimeout("www_helpor_net()",1000)! g4 e# T8 j4 {3 z
}
; V3 @7 l! S) x' m# C( d3 w2 Fwww_helpor_net();* g# e$ J- X6 q( D i( l
//-->
2 d5 m0 l8 z0 Y) N5 M</SCRIPT> |
|