Forum Settings
       
Reply To Thread

Countdown TimerFollow

#1 Nov 29 2010 at 6:15 PM Rating: Good
Avatar
*
113 posts
Still trying. Need help from any admin (Boh Help, give me ur lights !!)

Edited, Nov 29th 2010 7:31pm by agriosgeorge
____________________________
-- Currently playing --

LoL
CoD:MW3
Rift
#2 Nov 30 2010 at 12:46 PM Rating: Good
Scholar
*
118 posts
Went and found an online count down timer.

It generated code for one if we can put that in somewhere.

If not, the website has one that can probably be modified by anyone, but it is correct as of right now.

http://countdown.onlineclock.net/

Quote:
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--

dateFuture = new Date(2010,11,3,9,0,0);

function GetCount(){

dateNow = new Date(); //grab current date
amount = dateFuture.getTime() - dateNow.getTime(); //calc milliseconds between dates
delete dateNow;

// time is already past
if(amount < 0){
document.getElementById('countbox').innerHTML="Now!";
}
// date is still good
else{
days=0;hours=0;mins=0;secs=0;out="";

amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs

days=Math.floor(amount/86400);//days
amount=amount%86400;

hours=Math.floor(amount/3600);//hours
amount=amount%3600;

mins=Math.floor(amount/60);//minutes
amount=amount%60;

secs=Math.floor(amount);//seconds

if(days != 0){out += days +" day"+((days!=1)?"s":"")+", ";}
if(days != 0 || hours != 0){out += hours +" hour"+((hours!=1)?"s":"")+", ";}
if(days != 0 || hours != 0 || mins != 0){out += mins +" minute"+((mins!=1)?"s":"")+", ";}
out += secs +" seconds";
document.getElementById('countbox').innerHTML=out;

setTimeout("GetCount()", 1000);
}
}

window.onload=function(){GetCount();}//call when everything has loaded

//-->
</script>
<div id="countbox"></div>



Edit: I was going to look really cool and put this as my sig, but the code is much larger than the sig bow will allow. I may have to pull the Firemage Sig to use instead. Firemage/pyromancer seem close enough to me.

Edited, Nov 30th 2010 2:27pm by Entoc
#3 Nov 30 2010 at 4:35 PM Rating: Excellent
Avatar
*
113 posts
Had the same problem mate and to think that i found almost 5-6 different sites that u could creat a countdown timer and it didn't fit in the sig, so u know the disappointment :(
____________________________
-- Currently playing --

LoL
CoD:MW3
Rift
#4 Nov 30 2010 at 4:39 PM Rating: Good
*
182 posts
Wont even work just putting it in the thread?
____________________________
Member of United By Legend currently a AoC guild.
#5 Nov 30 2010 at 5:08 PM Rating: Decent
Scholar
*
118 posts
Quote:
<script language="JavaScript">
lTargetDate = "12/3/2010 07:00:01 AM UTC-0600";
lBackColor = "transparent";
lForeColor = "#000000";
lCountActive = true;
lCountStepper = -1;
lLeadingZero = true;
lDisplayFormat = "<div style='font-size:14px;line-height:36px;'><span style='color:#FF8000'>%%D%%</span> D <span style='color:#FF8000'>%%H%%</span> H <span style='color:#FF8000'>%%M%%</span> M <span style='color:#FF8000'>%%S%%</span> S</span></div>";
lFinishMessage = "It is finally here!";
outputCountDown(1166071,lTargetDate, lBackColor, lForeColor, lCountActive, lCountStepper, lLeadingZero, lDisplayFormat, lFinishMessage);
</script>


Will be a shorter way to do it, but would still require HTML to be entered into Sigs or the board itself.

What I have here is modified Widget from my guild website ticking down to Cata Release. Of course I changed the Dates, and set the Timezone to Central because I'm always thinking about myself before others.
Reply To Thread

Colors Smileys Quote OriginalQuote Checked Help

 

Recent Visitors: 24 All times are in CDT
Anonymous Guests (24)