JavaScript City



Date Written on Page

This script will allow you to display the date on the page.

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).

smisc2.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 date by adding the todays_date 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 date would also be a possibility.



eXTReMe Tracker