Odbrojavanje do nove godine

Moderators: cicans, TheHacker

Locked
ALEXANDAR2304
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Mon Nov 24, 2008 1:37 am

Odbrojavanje do nove godine

Post by ALEXANDAR2304 » Tue Nov 27, 2012 12:38 pm

Potrebna mi je ekstenzija koja ce da mi odbrojava jos koliko je ostalo do Nove Godine?

Pomoc neka? ;)

Za sada sam naso samo ovo ovako preko html coda, ali mi se ne svidja.
<script type="text/javascript" language="JavaScript">
<!--

dateFuture = new Date(2012,11,31,12,00,00);

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">
&nbsp;</div>

SinisaKrisan
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 173
Joined: Sun Apr 05, 2009 5:05 pm
Location: Bali, Indonesia
Contact:

Re: Odbrojavanje do nove godine

Post by SinisaKrisan » Tue Dec 04, 2012 9:24 pm

Joomla Extension Directory je jedno carobno mesto druze :)

http://extensions.joomla.org/extensions ... /countdown

Pozdrav
JomSocial Project Manager
http://www.jomsocial.com
IJOOMLA INC

ALEXANDAR2304
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Mon Nov 24, 2008 1:37 am

Re: Odbrojavanje do nove godine

Post by ALEXANDAR2304 » Wed Dec 05, 2012 12:50 am

Hvala druze, ja sam trazio ali nisam naisao na neku koja mi se bas dopala, ali pogledacu jos ovde, mora da ima neka lepa da se probere.
pozdrav. :)

SinisaKrisan
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 173
Joined: Sun Apr 05, 2009 5:05 pm
Location: Bali, Indonesia
Contact:

Re: Odbrojavanje do nove godine

Post by SinisaKrisan » Wed Dec 05, 2012 1:15 pm

Pa pazi, sa malo css modifikacija, mozes da napravis i mnogo lepo i mnogo ruzno :)
Jedino ako nisu flash tajmeri ali mira da ima i neki koji nije.
JomSocial Project Manager
http://www.jomsocial.com
IJOOMLA INC

ALEXANDAR2304
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Mon Nov 24, 2008 1:37 am

Re: Odbrojavanje do nove godine

Post by ALEXANDAR2304 » Wed Dec 05, 2012 1:55 pm

Naravno druze, hvala jos jednom sto si mi izaso u susret, a interesuje me za ovo jel moze neki savet pomoc kako ovo uraditi?

http://forum.joomla.org/viewtopic.php?f=293&t=774705

Unapred hvala!


Locked

Return to “Joomla! dodaci”