Here's a nice method to have your page automatically updated with date and time and more...
Page Title: This is the Title of the Page
Referrering URL: http://came.from/
Last modified: 04/08/2007 04:27:22
Current Time:Sunday, April 08, 2007 4:27:22 AM
Create a page with the following and name it timestamp.js
<!-- Javascript page info Utility v0.1 --> <!-- More Scripts At: http://www.freefeast.com/ --> var title = document.title; var titlelen = (title.length+275); var now = new Date(); var timestr = now.toLocaleString(); document.write("<table BORDER=0 CELLSPACING=1 CELLPADDING=1 COLS=1 BGCOLOR=#669999 WIDTH="+titlelen+">"); document.write("<tr><td BGCOLOR=white>"); document.write("<font color=#666666 size=2>"); document.write("Page Title: "+document.title); document.write('<BR>Referrering URL: <a href="'+document.referrer+'">'+document.referrer+'</a>'); document.write("<BR>Last modified: "+document.lastModified); document.write("<BR>Current Time:"+timestr); document.write("</font></td></tr></table>"); |
Insert the below on your page where you want the info to appear (be sure to change path.to/timestamp.js to yours.
<script language="JavaScript" src="http://path.to/timestamp.js"></script>
Added Sunday 08 April, 2007.