代码很简单,只是使用了javascript的setTimeout()函数。
用到的html"

Home  >  Article  >  Web Front-end  >  A simple timer_time and date written in javascript

A simple timer_time and date written in javascript

WBOY
WBOYOriginal
2016-05-16 18:48:53977browse

Let’s see the effect first.

The code is very simple, just using the setTimeout() function of javascript.
The html used"

Copy code The code is as follows:



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">


Then there is the javascript that implements non-stop timing:
Copy the code The code is as follows:



Finally, here are a few things I used Picture:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn