Automatic date update

D

Denny

Try copying and pasting the code below. If it doesn't
work or if you want to change the format, send me an
email at (e-mail address removed) and I'll send you a
new code. Please note the positioning in relationship to
the body tags. DO NOT DUPLICATE THE BODY TAGS IN YOUR
PAGE! To get specific placement, I suggest placing the
code (without the body tags) in a table or layer.

<BODY>

Good luck to you!
Denny


<!-- This starts SiteAid Date Script -->
<SCRIPT type="text/javascript">
<!-- hide javascript

SAone="";
SAtwo="";
SAthree="";
today = new Date();
weekday = today.getDay();
if (weekday == 0) SAone='Sunday';
if (weekday == 1) SAone='Monday';
if (weekday == 2) SAone='Tuesday';
if (weekday == 3) SAone='Wednesday';
if (weekday == 4) SAone='Thursday';
if (weekday == 5) SAone='Friday';
if (weekday == 6) SAone='Saturday';
month = today.getMonth();
if (month == 0) SAtwo='January';
if (month == 1) SAtwo='Febuary';
if (month == 2) SAtwo='March';
if (month == 3) SAtwo='April';
if (month == 4) SAtwo='May';
if (month == 5) SAtwo='June';
if (month == 6) SAtwo='July';
if (month == 7) SAtwo='August';
if (month == 8) SAtwo='September';
if (month == 9) SAtwo='October';
if (month == 10) SAtwo='November';
if (month == 11) SAtwo='December';
date = today.getDate();
year = today.getYear();

if ((navigator.appName == "Microsoft Internet Explorer")
&& (year < 2000))
year = "19"+ year;
if (navigator.appName == "Netscape")
year = 1900 + year;
SAthree = year
document.write (SAone,',', ' ',date, ' ', SAtwo,',',' ',
SAthree);

// done hiding -->
</SCRIPT>
<!-- This ends SiteAid Date Script -->
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top