Šta je novo?

treba mi skripta

vlada13

Čuven
Učlanjen(a)
27.02.2003
Poruke
321
Poena
620
... koja računa dane, sate i sekunde od određenog vremena.
npr: Stari ste xxxxx dana ili zzzzz sati, ili yyyyy sekundi
npr2: Stari ste xxx dana, yyyyysati i zzzzzz sekundi.
Nadam se da sam dobro objasnio šta mi treba
 
<SCRIPT LANGUAGE = "JavaScript">
var now = new Date();
// set this value to the countdown date.
var then = new Date("September 1, 2001");
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write(gap);
</SCRIPT>
<!--your message here-->
 
ovo je countdown

a brojanje od datuma bi trebalo ovako da izgleda

<SCRIPT LANGUAGE = "JavaScript">
var now = new Date();
// set this value to the countdown date.
var then = new Date("September 1, 2001");
var gap = now.getTime() - then.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write(gap);
</SCRIPT>
<!--your message here-->
 
Nazad
Vrh Dno