挺酷的一个倒计时
var dn
var Val
c1=new Image(); c1.src="http://pic.tiexue.net/pics/2006_10_25_97465_3997465.gif"
c2=new Image(); c2.src="http://pic.tiexue.net/pics/2006_10_25_97466_3997466.gif"
c3=new Image(); c3.src="http://pic.tiexue.net/pics/2006_10_25_97470_3997470.gif"
c4=new Image(); c4.src="http://pic.tiexue.net/pics/2006_10_25_97471_3997471.gif"
c5=new Image(); c5.src="http://pic.tiexue.net/pics/2006_10_25_97472_3997472.gif"
c6=new Image(); c6.src="http://pic.tiexue.net/pics/2006_10_25_97477_3997477.gif"
c7=new Image(); c7.src="http://pic.tiexue.net/pics/2006_10_25_97478_3997478.gif"
c8=new Image(); c8.src="http://pic.tiexue.net/pics/2006_10_25_97479_3997479.gif"
c9=new Image(); c9.src="http://pic.tiexue.net/pics/2006_10_25_97482_3997482.gif"
c0=new Image(); c0.src="http://pic.tiexue.net/pics/2006_10_25_97464_3997464.gif"
cb=new Image(); cb.src="http://pic.tiexue.net/pics/2006_10_25_97484_3997484.gif"
function nowtime(sz1,fz1,mz1){
var now=new Date();
var deadline=now.getTime()+sz1*60*60*1000+fz1*60*1000+mz1*1000;
Val=deadline
djs(deadline)
}
function djs(deadline1){
var now = new Date();
var leave =deadline1 - now.getTime();
if (leave
if (!document.images)
return
if (hours
setTimeout("djs(Val)",100)
}
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
小时
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
分钟
0
1
2
3
4
5
6
秒
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]