Go to Post .. if no one gets ahead no one gets left behind. - Koko Ed [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > CD Forum Support
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 09-11-2002, 00:41
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,519
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Quote:
Originally posted by evulish
And how do you do countdown things in HTML?
DHTML

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>
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004

Last edited by sanddrag : 09-11-2002 at 00:43.
Reply With Quote
 


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
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


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

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