Simple Clock 2
This script will allow you to display a simple clock on the page with
the day of the week and the date.
Script Code
Grab a copy of the file below and place it in the same directory as the Web page on which
you will use the script (if you wish to place the script file in a different directory
you will need to make the necessary adjustments to the src attribute of the script tag
that calls it).
sclock2.js
The code below should be placed between the <body> and </body> tags where
you want the clock to appear.
Example
A working sample of the script is shown below.
Options
You can change the appearance of the clock by adding the my_clock id to
your style sheet and editing as desired.
Accessibility
A backup to the script via Java applet or some type of plugin is a possibility. If the
plugin is accessible, a link for the viewer to download the plugin somewhere on the page
should suffice. A server-side script that simply grabs the current time but doesn't update
every second would also be a possibility.
Copyright © 1998-2010
The Web Design Resource. All rights reserved. See script or author's information for copyright information on the
individual scripts and/or writing.
Disclaimer