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

|
数字化的时钟代码
<span id="liveclock" style"=width: 109px; height: 15px"></span>' O7 ?4 P5 |& c/ L
<SCRIPT language=javascript>
/ o D; @) x1 yfunction www_helpor_net()
5 ~( l: e/ L6 V! G{
2 b# i; v# R8 G# o. g3 rvar Digital=new Date()3 ~1 r8 D2 t1 U! x1 l) z- I
var hours=Digital.getHours()7 `! P. y* _6 M7 O+ N+ F
var minutes=Digital.getMinutes()
" `0 s7 z( {! Tvar seconds=Digital.getSeconds()2 M. ?5 u$ i: S& k9 D
/ w1 ~ ?$ M2 V# M" M W
if(minutes<=9)' C& B- x5 L; f7 E5 ^: U1 a
minutes="0"+minutes
$ E: }( R9 |- B N( h. ^if(seconds<=9); r# D. T% _2 _1 K( x5 N
seconds="0"+seconds& Z% Q3 ]; W$ o& m# t& V1 A6 _
myclock="现在时刻:<font size='5' face='Arial black'>"+hours+":"+minutes+":"+seconds+"</font>". c& c8 N. N& M/ `9 V
if(document.layers){document.layers.liveclock.document.write(myclock)" M, @3 N- j W, \
document.layers.liveclock.document.close()
* ~2 h1 I* @, ~% z/ V, I a}else if(document.all)0 @% M7 ^) b- d$ [
liveclock.innerHTML=myclock
9 R0 {0 G' g5 e& y0 n3 |setTimeout("www_helpor_net()",1000)
0 F4 g6 |2 j9 }% u. b/ T' P5 t}
b3 d# l9 L+ ewww_helpor_net();$ U1 _' x3 @" U: t' t2 E
//-->& ~% w$ U5 S+ B
</SCRIPT> |
|