|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
or there's a simpler JavaScript script that goes something like this: <SCRIPT LANGUAGE="JAVASCRIPT"> ccDayNow = new Date(); ccDayThen = new Date("January 4, 2003") msPerDay = 24 * 60 * 60 * 1000 ; timeLeft = (ccDayThen.getTime() - ccDayNow.getTime()); cc_daysLeft = timeLeft / msPerDay; daysLeft = Math.floor(cc_daysLeft); cc_hrsLeft = (cc_daysLeft - daysLeft)*24; hrsLeft = Math.floor(cc_hrsLeft); minsLeft = Math.floor((cc_hrsLeft - hrsLeft)*60); document.write( ""+daysLeft+" days left until the 2003 FIRST Robotics Kickoff"); </SCRIPT> <edit>But this one does not give you real-time counting. You need to refresh the page it's on. The DHTML one does countdown in real-time but the code is obviously much longer.</edit> Last edited by sanddrag : 09-11-2002 at 00:43. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Men of ChiefDelphi: Unite! | DanL | Chit-Chat | 26 | 08-04-2003 23:20 |
| ChiefDelphi Forums Community Bulletin | Brandon Martus | CD Forum Support | 0 | 02-06-2002 23:56 |
| ChiefDelphi Forums Community Bulletin | Brandon Martus | CD Forum Support | 0 | 13-08-2001 08:20 |
| ChiefDelphi Forums Community Bulletin | Brandon Martus | CD Forum Support | 0 | 06-08-2001 10:32 |
| ChiefDelphi Forums Community Bulletin | Brandon Martus | CD Forum Support | 0 | 23-07-2001 08:29 |