先看看效果吧。代码很简单,只是使用了javascript的setTimeout()函数。用到的html" 复制代码 代码如下: src="dg8.gif" name="hr2">src="dgc.gif" name="c">src="dg8.gif" name="mn1">src="dg8.gif" name="mn2">src="dgc.gif" name="c">src="dg8.gif" name="se1">src="dg8.gif" name="se2"> 然后是实现了不停的计时的javascript: 复制代码 代码如下: <!-- <BR>dg0 = new Image();dg0.src = "dg0.gif"; <BR>dg1 = new Image();dg1.src = "dg1.gif"; <BR>dg2 = new Image();dg2.src = "dg2.gif"; <BR>dg3 = new Image();dg3.src = "dg3.gif"; <BR>dg4 = new Image();dg4.src = "dg4.gif"; <BR>dg5 = new Image();dg5.src = "dg5.gif"; <BR>dg6 = new Image();dg6.src = "dg6.gif"; <BR>dg7 = new Image();dg7.src = "dg7.gif"; <BR>dg8 = new Image();dg8.src = "dg8.gif"; <BR>dg9 = new Image();dg9.src = "dg9.gif"; <br><br>dgc = new Image();dgc.src = "dgc.gif"; <BR>se_d=0; <BR>se_g=0; <BR>mn_g=0; <BR>mn_d=0; <BR>hr_g=0; <BR>hr_d=0; <BR>function dotimer(){ <BR>theTime=setTimeout('dotimer()',1000); <br><br>//���ﲻ��ʹ��60����4����hr,mn��se <BR>//������ʹ�øߣ���λ4��ʾ <br><br>document.hr1.src = 'dg'+hr_g+'.gif'; <BR>document.hr2.src = 'dg'+hr_d+'.gif'; <BR>document.mn1.src = 'dg'+mn_g+'.gif'; <BR>document.mn2.src = 'dg'+mn_d+'.gif'; <BR>document.se1.src = 'dg'+se_g+'.gif'; <BR>document.se2.src = 'dg'+se_d+'.gif'; <BR>if(se_d < 9) <BR>{ <BR>se_d=se_d +1;} <BR>else <BR>{ <BR>se_d=0; <BR>se_g=se_g+1; <BR>} <BR>if(se_g > 5) <BR>{se_g = 0; <BR>mn_d=mn_d +1 ; <BR>if(mn_d > 9) <BR>{mn_d =0; <BR>mn_g = mn_g+1;} <BR>if(mn_g >5) <BR>{ <BR>mn_g=0; <BR>hr_d=hr_d+1; <BR>} <BR>if(hr_d >9) <BR>{ <BR>hr_d=0; <BR>hr_g=hr_g+1; <BR>} <BR>} <BR>} <br><br>dotimer(); <BR>//end <BR>// --> 最后附上我用到的几个图片: