
BY: gmccomb.com...Gordon's Home Page
DATE: 1996-07-12
The JavaScript Clock
The current time is:
COMMENTS FROM THE AUTHOR:
This is an example of displaying a digital clock using only JavaScript (no CGI or Java is used to create this page). This example is from The JavaScript Sourcebook, forthcoming from Wiley Computer Books.
To use the clock, you must copy the following files:
- This file (clock.html)
- The digit image files (dg0.gif through dg9.gif)
- The colon separator image file (dgc.gif)
- The am and pm indicators (dgam.gif and dgpm.gif)
The clock face images are from Russ's Index Page. A number of other interesting digit images are available there, too.
If you want this script click here to download the necessary files.
URL: http://www.oocities.org/SiliconValley/7116/jv_dclk.html