<!-- COUNTDOWN --> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2003, Sandeep Gangadharan --> <!-- For more free scripts go to http://www.sivamdesign.com/ --> <!-- function count() { month = 'Jan'; // change the month to the one you want in the same format as shown date = '01'; // change the date to the one you want in the same format as shown year = '2006'; // change the year to the one you want in the same format as shown theDate = month + ' ' + date + ' ' + year; now = new Date(); setdate = new Date(theDate); timer = (setdate - now) / 1000 / 60 / 60 / 24; timer = Math.round(timer); var message = timer + " days to go for the New Year!"; // Change the words at left to suit your needs if (timer == "1") message = timer + " day to go for the New Year!"; // This would be the message when there is one day to go if (timer == "0") message = "Less than a day to go for New Year!"; // Message when there is less that one day to go if (timer == "-1") message = "Happy New Year!!"; // Big Day Greeting if (timer < "-1") message = ""; // Blank space for when the day is past document.write(message); } // --> </script> <!-- This goes into the BODY tag --> <body onLoad="count()">