Wolvie
03-05-2009, 09:43 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>
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>