The Digital Research Initiative The University of North Carolina at Chapel Hill ![]() Time Displays These two short scripts are easy to use and don't rely on the server the way their SSI counterparts do. Last Modified This script displays the date and time you last made a change to your page. It's really good to have if you don't like having all your page's filenames end with .shtml (like this one, for example). This script goes wherever you want it to show up on your page, usually at the bottom.
Here's the script at work:
Of course, if that doesn't work, you can always bite the bullet, end all your files with .shtml, and use this SSI command instead:
Current Time There's two ways you can do this: display the current time in you page or down in the status bar. By far, the status bar time is much cooler because it won't take up any room in your page and people will think, "Wow, this girl is a real hack! How did she do that?" To display the time in you page, include this script between the </title> and the </head> tags.
Add this to your <body> tag:
And now, put this where you want the clock to show up:
Here's the script at work:
If you want to have the time pop up in the status bar instead, go back to the script that's located in the <head> and replace this line:
with this line:
Remember, you can only do one at a time. You can't have the time pop up on the page and the status bar. One or the other (go for the status bar).
|