PDA

View Full Version : Kickoff Countdown


Ricky Q.
01-03-2003, 11:36 AM
And lets start it off.....


21 hours and 24 mins till Kickoff

2 hours till i leave to Kokomo

:D

Jay5780
01-03-2003, 01:42 PM
Only...

18 Hours 17minutes


Anyway to have the countdown page count all the way down to at least hours? or even 00:00:00 ???

Brandon Martus
01-03-2003, 02:11 PM
Originally posted by Jay5780
Only...

18 Hours 17minutes


Anyway to have the countdown page count all the way down to at least hours? or even 00:00:00 ???

The vBulletin calendar system doesn't allow me to input time (h:m:s) only m/d/y .. so it would only count down to 12:00am. If thats acceptable, I could do that :)

I think vb3 allows time... so next season this wont be a problem :)

sanddrag
01-03-2003, 02:22 PM
Originally posted by Brandon Martus
The vBulletin calendar system doesn't allow me to input time (h:m:s) only m/d/y .. so it would only count down to 12:00am. If thats acceptable, I could do that :)

I think vb3 allows time... so next season this wont be a problem :)

Anyone know how to count down to a specific time in JavaScript? I can do the 12:00 AM one but does anyone know if the exact countdown is possible?

Brandon Martus
01-03-2003, 02:35 PM
yes. someone mentioned something about a script they found (so you dont have to write it).

it was in the past 3-4 days... search back & see if you can find it. it was most likely in the website design/showcase forum or programming

Yan Wang
01-03-2003, 03:29 PM
http://www.jracademy.com/~jtucek/count.html is one that you could easily implement.

AJ Quick
01-03-2003, 05:13 PM
Originally posted by Brandon Martus
The vBulletin calendar system doesn't allow me to input time (h:m:s) only m/d/y .. so it would only count down to 12:00am. If thats acceptable, I could do that :)

I had this problem with the calendar in phpBB as well. So I just went in and changed everything to accept the times. ;) Well I think you could be able to, but with the new VB, and only 15 hours left.. who cares!

I whipped up a page with a countdown script I found, check it out here: http://www.ajquick.com/kickoff.html

Hailfire
01-03-2003, 07:34 PM
10 hours 55 minutes and 30 seconds.

Gary Dillard
01-03-2003, 08:53 PM
Originally posted by AJ Quick

I whipped up a page with a countdown script I found, check it out here: http://www.ajquick.com/kickoff.html

Central Standard Time?? Shouldn't the countdown be the same regardless of what time zone you're in?

Matt Attallah
01-03-2003, 09:48 PM
Originally posted by Gary Dillard
Central Standard Time?? Shouldn't the countdown be the same regardless of what time zone you're in?

It should last time I checked, but I heard the world was ending thanks to the Polar Ice Caps melding and the Magnitic poles where changeing...

The time left in Michigan is 8 Hours and 51 Minutes (counting on my Desktop Clock and after check-in)

Ryan Curry
01-04-2003, 12:37 AM
On my teams website we have a Jva Script Countdown timer that is very nice, we go it off of a free Java site.


<script language="JavaScript">

hour(0=midnight,23=11pm), minutes, seconds:
setcountdown(2003,01,04,0,0,00)
/setcountdown(year,month,day,hour,minutes,seconds)/


var occasion="Manchester Kickoff"
var message_on_occasion="Go FURY!"

var countdownwidth='520px'
var countdownheight='35px'
var countdownbgcolor='#cccccc'
var opentags='<font face="Georgia" size=2 color=#990033><b>'
var closetags='</b></font>'

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''

function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
countdown()
}

if (document.all||document.getElementById)
document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')

window.onload=start_countdown


function countdown(){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[mo-1]+" "+da+", "+yr+" "+hr+":"+min+":"+sec
dd=Date.parse(futurestring)-Date.parse(todaystring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000) )/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000 ))%(60*1000))/1000*1)
//if on day of occasion
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if (document.layers){
document.countdownnsmain.document.countdownnssub.d ocument.write(opentags+message_on_occasion+closeta gs)
document.countdownnsmain.document.countdownnssub.d ocument.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+ closetags
return
}
//if passed day of occasion
else if (dday<=-1){
if (document.layers){
document.countdownnsmain.document.countdownnssub.d ocument.write(opentags+"Occasion already passed! "+closetags)
document.countdownnsmain.document.countdownnssub.d ocument.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"Occasion already passed! "+closetags
return
}
//else, if not yet
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.d ocument.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.d ocument.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left til "+occasion+closetags
}
setTimeout("countdown()",1000)
}
</script>



That will let you countdown to any event, just altering the first set of lines.

-Rc

Ken Leung
01-04-2003, 01:10 AM
All right. Let's do a count down... All of you late nighters only get to post once the amount of time left before kickoff.

Let's see who gets to post the last. :P

7 hours 50 mins till kickoff start!

Brandon Martus
01-04-2003, 01:24 AM
I set a limit on it anyway .. so neener! :)

Once per 7 or 8 hours, I think it is.
(this applies to all 'game' type threads, like word association, etc)

Suneet
01-04-2003, 01:46 AM
7 hours, 14 min until kickoff.

/me pulls hair

:D :D :D

dlavery
01-04-2003, 01:49 AM
7 hours and 11 minutes!

-dave



Y = AX^2 + BX + C (you find out EXACTLY what this means in 7 hours and 41 minutes!) :)

FotoPlasma
01-04-2003, 03:00 AM
6 hours.

/me shivers in anticipation.

George1902
01-04-2003, 05:11 AM
Just under 4 hours to go! i leave in an hour, so i won't get to be the last post, unfortunately

Jeff Waegelin
01-04-2003, 05:31 AM
only 3 hours, 30 minutes to go!

Melissa Nute
01-04-2003, 06:16 AM
2 hours, 45 minutes

Aignam
01-04-2003, 06:24 AM
Originally posted by Ryan Curry
On my teams website we have a Jva Script Countdown timer that is very nice, we go it off of a free Java site.
-Rc

I'm pretty sure that's the one from DynamicDrive.com.

Ashley Weed
01-04-2003, 06:30 AM
150 minutes

Ryan Dognaux
01-04-2003, 06:30 AM
2 hours, 30 minutes... Can you feel the anticipation? The Excitement? It's here!

Cory
01-04-2003, 07:26 AM
1 hour and 34 minutes. Im getting ready to leave for SJSU in a few minutes, so I wont be last either.


Cory

Aaron Lussier
01-04-2003, 07:36 AM
1 hour and 25 Minutes I have to leave to get to our broadcast site.

Trashed20
01-04-2003, 07:44 AM
1 hour 14 minutes 42 seconds :)

AJ Quick
01-04-2003, 08:07 AM
Originally posted by Gary Dillard
Central Standard Time?? Shouldn't the countdown be the same regardless of what time zone you're in?

No. It is actually counting down to 9:00 AM, which is the time it starts here... it automatically adjusts depending on what time zone you are in, so it always counts to 9 o'clock anytime.

I know this was pretty stupid, I could have written something in PHP in about 5 minutes that runs off of the server clock, which never changes. Well anyways, as of now, the current count is:

53 minutes, and 20 seconds

Katie Reynolds
01-04-2003, 08:44 AM
16 minutes :)

Adam Y.
01-04-2003, 08:54 AM
5 minutes:) A warmup comedian??