gmccomb.com...Gordon's Home Page
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 just choose "Save As..." (in Netscape).
You can download an archive of the script. Just click here.