Go to Post There are always going to be tough calls, and you just have to trust in your officials to do the right thing. - Jeff Waegelin [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 15-02-2004, 21:08
charlie_grr's Avatar
charlie_grr charlie_grr is offline
Master Ninja of the Night
#0973 (Greyhound Revolutionary Robotics)
Team Role: Driver
 
Join Date: Mar 2003
Location: Atascadero
Posts: 67
charlie_grr has a little shameless behaviour in the past
Send a message via AIM to charlie_grr Send a message via MSN to charlie_grr
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>
__________________
Reply With Quote
  #17   Spotlight this post!  
Unread 20-02-2004, 11:38
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
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!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 21:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi