...

View Full Version : how to add a line in script



Wolvie
03-05-2009, 05:31 AM
Hi,

I have this script for a countdown clock and like to add a line. I like to have a line that says merry christmas on christmas day. Can anyone help me?

Astrid

<script language="javascript">
today = new Date();
BigDay = new Date("December 25, 2009")
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
document.write( " "+daysLeft+" days until Christmas!");
</script>

Avril
03-05-2009, 05:49 AM
I suggest you send your question to the JS forum. Someone is sure to help.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum