Re: Page Last Updated - Script?
by "Joseph Poplawski" <jopop(at)parallaxstudios.com>
|
Date: |
Thu, 10 Feb 2000 12:12:05 -0500 |
To: |
"Rob Brosey" <rbrosey(at)earthlink.net>, <hwg-languages(at)mail.hwg.org> |
References: |
oneil |
|
todo: View
Thread,
Original
|
|
Rob,
At the bottom of this message is a Javascript that will automatically
determine the date the page was last updated and display it.
I hope this helps you with what you are trying to do and will pacify those
who were questioning of your motives.
Jo Pop
----- Original Message -----
From: "Rob Brosey" <rbrosey(at)earthlink.net>
To: <hwg-languages(at)mail.hwg.org>
Sent: Thursday, February 10, 2000 7:39 AM
Subject: Page Last Updated - Script?
> To all that responded negatively,
>
> The reason why I want to do such a thing is because I am updating
different
> parts of the site daily (as with 5 other sites) and if I can help it I
want
> to cut down on the time that is taking. Just by having to go into a page
to
> edit it to change the date is a minor pain that I wanted to eliminate.
This
> is not meant to be fraudulent representation of a sites content but a time
> saving measure.
>
> I guess that some people just want to look for any reason to be pompous
and
> to
> try to act a little superior. I'll bet you that a lot more people are
doing
> this for the same reasons as I.
>
> I always thought a good techie/programmer was a person that always looked
> for ways to cut down on work.
>
> Rob Brosey
>
>
<!-- This shows the user the last date this page was modified -->
<center>
<SCRIPT LANGUAGE="JavaScript">
<!--
file://Modified by Coffeecup.com
function initArray()
{
this.length = initArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i]
}
var DOWArray = new
initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Satur
day");
var MOYArray = new
initArray("January","February","March","April","May","June","July","August",
"September","October","November","December");
var LastModDate = new Date(document.lastModified);
document.write("This page was last updated on ");
document.write(DOWArray[(LastModDate.getDay()+1)],", ");
document.write(MOYArray[(LastModDate.getMonth()+1)]," ");
document.write(LastModDate.getDate(),", ",(LastModDate.getYear()+1900));
document.write(".");
file://-->
</SCRIPT>
</center>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA