I wrote a little javascript to display date (day, month, year) and it
works fine in IE etc but not in Mozilla Firefox, which instead of '2004'
displays '104'. Why is this so? In the head:
<script language = "javascript" type="text/javascript">
<!--
today = new Date
weekDayName = new Array
("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monthName = new Array
("January","February","March","April","May","June","July","August","September","October","November","December")

yearName = new Array ("2004","2005")
function printDate()
{
document.write(weekDayName[today.getDay()] + ", " + today.getDate() + " "
+ monthName[today.getMonth()] + ", " + today.getYear())
}
-->
</script>

In the body:
<SCRIPT LANGUAGE="JAVASCRIPT">printDate()</SCRIPT>

Thanks so much, Jen

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to