代码很简单,只是使用了javascript的setTimeout()函数。
用到的html"
Home > Web Front-end > JS Tutorial > A simple timer_time and date written in javascript

A simple timer_time and date written in javascript

WBOY
Release: 2016-05-16 18:48:53
Original
994 people have browsed it

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:

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template