<!--COUNTDOWN II--> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2001, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- function count2() { itIs = document.month.count1.value + ' ' + document.date.count1.value + ' ' + document.year.count1.value now4=new Date(); setdate2=new Date(itIs); timer1 = (setdate2 - now4) / 1000 / 60 / 60 / 24; timer1 = Math.round(timer1); theHour = (setdate2 - now4) / 1000 / 60 / 60; theHour = Math.round(theHour); theMinute = (setdate2 - now4) / 1000 / 60; theMinute = Math.round(theMinute); theSecond = (setdate2 - now4) / 1000; theSecond = Math.round(theSecond); document.days4.count1.value = timer1; document.hours4.count1.value = theHour; document.minutes4.count1.value = theMinute; document.seconds4.count1.value = theSecond; if (document.days4.count1.value == "NaN" || document.hours4.count1.value == "NaN" || document.minutes4.count1.value == "NaN" || document.seconds4.count1.value == "NaN") { alert('You have typed a field incorrectly!'); return false; window.clearTimeout(SD); } SD=setTimeout("count2()", 1000); } // --> </script> <!-- This goes in the BODY of the html file --> <body> <table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#c0c0c0"> <tr> <td><br /> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <font face="verdana, arial, helvetica, sans-serif" size="1"> Month </font> </td> <td align="center"> <font face="verdana, arial, helvetica, sans-serif" size="1"> Date </font> </td> <td align="center"> <font face="verdana, arial, helvetica, sans-serif" size="1"> Year </font> </td> </tr> <tr> <td> <form name="month"> <input type="text" size="4" name="count1" value="Jan" /> </form> </td> <td> <form name="date"> <input type="text" size="2" name="count1" value="00" /> </form> </td> <td> <form name="year"> <input type="text" size="4" name="count1" value="2002" /> </form> </td> </tr> <tr> <td align="center" colspan="3"> <form> <input type="button" value="Submit" onClick="count2();" /> </form> </td> </tr> </table> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" colspan="4" height="20"> <font face="verdana, arial, helvetica, sans-serif" size="1"> <b>To go:<b> </font> <td> </td> </tr> <tr> <td align="center"> <font face="verdana, arial, helvetica, sans-serif" size="1"> Days </font> </td> <td align="center"> <font face="verdana, arial, helvetica, sans-serif" size="1"> Hours </font> </td> <td align="center"> <font face="verdana, arial, helvetica, sans-serif" size="1"> Minutes </font> </td> <td align="center"> <font face="verdana, arial, helvetica, sans-serif" size="1"> Seconds </font> </td> </tr> <tr> <td> <form name="days4"> &nbsp;<input type="text" size="5" name="count1" /> </form> </td> <td> <form name="hours4"> <input type="text" size="6" name="count1" /> </form> </td> <td> <form name="minutes4"> <input type="text" size="8" name="count1" /> </form> </td> <td> <form name="seconds4"> <input type="text" size="10" name="count1" />&nbsp; </form> </td> </tr> </table> </td> </tr> </table>