先看看效果吧。
代码很简单,只是使用了javascript的setTimeout()函数。
用到的html"
复制代码 代码如下:
<table>
<td bgcolor="EE8F8F" height="45">
<img src="/UploadFiles/2021-04-02/dg8.gif">src="dg8.gif">src="dgc.gif">src="dg8.gif">src="dg8.gif">src="dgc.gif">src="dg8.gif">src="dg8.gif"></td></table>
然后是实现了不停的计时的javascript:
复制代码 代码如下:
<script language="javascript"><!--
dg0 = new Image();dg0.src = "dg0.gif";
dg1 = new Image();dg1.src = "dg1.gif";
dg2 = new Image();dg2.src = "dg2.gif";
dg3 = new Image();dg3.src = "dg3.gif";
dg4 = new Image();dg4.src = "dg4.gif";
dg5 = new Image();dg5.src = "dg5.gif";
dg6 = new Image();dg6.src = "dg6.gif";
dg7 = new Image();dg7.src = "dg7.gif";
dg8 = new Image();dg8.src = "dg8.gif";
dg9 = new Image();dg9.src = "dg9.gif";
dgc = new Image();dgc.src = "dgc.gif";
se_d=0;
se_g=0;
mn_g=0;
mn_d=0;
hr_g=0;
hr_d=0;
function dotimer(){
theTime=setTimeout('dotimer()',1000);
//"" src="/UploadFiles/2021-04-02/20090730183110341.PNG">
javascript,timer
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com