|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Countdown timer untill ship date??!?
here's some basic java that we use on our site
<SCRIPT> //change your event date event here. var eventdate = new Date("Feb 26, 2004 12:00:00 PST"); function toSt(n) {s="" if(n<10) s+="0" return s+n.toString(); } function countdown() {cl=document.clock; d=new Date(); count=Math.floor((eventdate.getTime()-d.getTime())/1000); if(count<=0) {cl.days.value ="----"; cl.hours.value="--"; cl.mins.value="--"; cl.secs.value="--"; return; } cl.secs.value=toSt(count%60); count=Math.floor(count/60); cl.mins.value=toSt(count%60); count=Math.floor(count/60); cl.hours.value=toSt(count%24); count=Math.floor(count/24); cl.days.value=count; setTimeout("countdown()",500); } // end script --> </SCRIPT> |
|
#17
|
|||
|
|||
|
Re: Countdown timer untill ship date??!?
i wrote a countdown timer in vb6 a while back, you can set it to count down to any day and time... i can send it to you if you want... email me... whodoyacallit@hotmail.com it sits happily centered at the top edge of your screen, dates farther than a month away arent perfect, but i'm close... you can even have it tell you what you're counting down to (in case you forget) HA!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Team 118 - Ship Date minus 7 Days | CD47-Bot | Robot Showcase | 13 | 28-02-2003 12:55 |
| pic: Team 118 - Ship Date | CD47-Bot | Robot Showcase | 2 | 28-02-2003 03:23 |
| extended ship date (2/20) | Mike Soukup | General Forum | 17 | 18-02-2003 11:59 |
| ship date in the documentation | archiver | 2001 | 3 | 24-06-2002 00:01 |