Java Script Code
This page was last updated on Thursday, July 12, 2001, and you last accessed it on
Thursday, July 12, 2001 at 18:21:05.To have the above message, automatically change on your page every time you update it and everytime some looks at your page.
Use the code below, to copy and paste in the code view of your page:
<script language="JavaScript">
<!--
var months = new
Array("January","February","March","April","May","June","July","August","September","October","November","December");
var days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var lmod = new Date(document.lastModified); var H = lmod.getHours(document.lastModified); var MI =
lmod.getMinutes(document.lastModified); var S = lmod.getSeconds(document.lastModified); var Da =
lmod.getDay(document.lastModified); var MO = lmod.getMonth(document.lastModified); var D =
lmod.getDate(document.lastModified); var Y = lmod.getFullYear(document.lastModified); var AM =" AM";
if(H>12){H=H-12;AM=" PM";}if(H<10){H="0"+H;}if(MI<10){MI="0"+MI;}if(S<10){S="0"+S;}
var T = days[Da]+ ", "+months[MO]+" "+D+", "+Y;
document.writeln("This page was last updated on "+T+", ");var now = new Date(); var H = now.getHours(); var MI = now.getMinutes(); var S = now.getSeconds(); var Da =
now.getDay(); var M = now.getMonth(); var D = now.getDate(); var Y = now.getFullYear(); var AM =" AM";
if(H<10){H="0"+H;}if(MI<10){MI="0"+MI;}if(S<10){S="0"+S;}
var TO = days[Da]+ ", "+months[M]+" "+D+", "+Y+" at "+H+":"+MI+":"+S;
document.writeln("and you last accessed it on "+TO+".");
//-->
</script>