Countdown Thing.

As bugs and suggestions are fixed/implemented/rejected, they will be moved in here.
User avatar
Fresh Water Fighters
Legendary River Dog
Posts: 838
Joined: Sat Mar 20, 2004 1:07 pm
Location: Thialand (But I come form New Zealand)

Post by Fresh Water Fighters »

Something like this:

<form name="count">
<input type="text" size="69" name="count2">
</form>


<script>

/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/


//change the text below to reflect your own,
var before="BFR Ends"
var current="BFR Ends Today!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countdown(yr,m,d){
theyear=yr;themonth=m;theday=d
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[m-1]+" "+d+", "+yr
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(dday==0&&dhour==0&&dmin==0&&dsec==1){
document.forms.count.count2.value=current
return
}
else
document.forms.count.count2.value="Only "+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+before
setTimeout("countdown(theyear,themonth,theday)",1000)
}
//enter the count down date using the format year/month/day
countdown(2004,4,30)
</script>
<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>


It could just be put on the home page like a week before the round finished.
~FWF :D
User avatar
Zephyrus
Eternally Confused
Posts: 1250
Joined: Wed May 05, 2004 8:57 pm
Location: Bleh. New York City.

Post by Zephyrus »

Hm. Why JavaScript?
Why not just something that counts the days in the month and subtracts the current date?
It could be done with php.
Back. I think.
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

Thats not a bad idea atcually some sort of thing saying how long left for the round.....
I do not have a signature, you must be imagining

http://florida4us.com/

Image
User avatar
IFman
Furcht mich
Posts: 650
Joined: Sat Mar 13, 2004 12:22 am
Location: Here

Post by IFman »

why do we need it, we know it ends on the 30th
I Like Pi
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

But other people who don't check the forums might not
I do not have a signature, you must be imagining

http://florida4us.com/

Image
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

The first! The first! It's the first, not the 30th, not the 28th, not the 2nd, it's the 1st!

Now that that's done...

People who don't check the forums should. If it's hard to play without checking the forums, hopfully more people will. It's a lot easier the communicate over forums, since you can put up messages for every one to read, and you don't have to keep relaying convos back and forth, and stuff.

But I suppose just putting a line in the news "Next reset is the first of (whatever month it will be)" If people are to lazy to figure out how many days they have, or to lazy to remember what day it is, well, that's their problem, not ours...
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
User avatar
Fresh Water Fighters
Legendary River Dog
Posts: 838
Joined: Sat Mar 20, 2004 1:07 pm
Location: Thialand (But I come form New Zealand)

Post by Fresh Water Fighters »

Zephyrus wrote: Hm. Why JavaScript?
Why not just something that counts the days in the month and subtracts the current date?
It could be done with php.
Because i foud this on a website and i don,t know php
*laughs*
:*laughs*:
~FWF
gondor
Forum Maniac
Posts: 631
Joined: Sat Apr 02, 2005 7:16 pm
Location: On FAF Usually
Contact:

Post by gondor »

nice thAT is a good idea but were would thecount down go *laughs*
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

Near the title of the server name or something like that gondor. Are we going to have one of these? Personally I think it's a good idea.
I do not have a signature, you must be imagining

http://florida4us.com/

Image
gondor
Forum Maniac
Posts: 631
Joined: Sat Apr 02, 2005 7:16 pm
Location: On FAF Usually
Contact:

Post by gondor »

kk at least it wouldent get in the way to much
User avatar
Scorpion
Advanced Member
Posts: 64
Joined: Wed Jan 26, 2005 2:49 pm
Location: Eu.Nl.Dr.Me
Contact:

Post by Scorpion »

sure its handy, I dont know when the BFR set ends..!
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

Ruddertail wrote: The first! The first! It's the first, not the 30th, not the 28th, not the 2nd, it's the 1st!
See above. That is, the first of every month.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
gondor
Forum Maniac
Posts: 631
Joined: Sat Apr 02, 2005 7:16 pm
Location: On FAF Usually
Contact:

Post by gondor »

so are we going to have a countdown at all
User avatar
Scorpion
Advanced Member
Posts: 64
Joined: Wed Jan 26, 2005 2:49 pm
Location: Eu.Nl.Dr.Me
Contact:

Post by Scorpion »

Ruddertail wrote:
Ruddertail wrote: The first! The first! It's the first, not the 30th, not the 28th, not the 2nd, it's the 1st!
See above. That is, the first of every month.
My bad, I dont read it all..didnt had much time
gondor
Forum Maniac
Posts: 631
Joined: Sat Apr 02, 2005 7:16 pm
Location: On FAF Usually
Contact:

Post by gondor »

i never read it all *laughs* i skip through it and look at the ost inportant bits *laughs*
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members