VYPOCET ZOSTATKU

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

018
p018.html / p018.zip
Vypocita kolko dni, hodin a minut nas deli od urceneho datumu
714b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P018 </title> </head> <body> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- today = new Date(); document.write("<h4><em>Dnes je:</em><br>"+today+"<P></h4>"); BigDay = new Date("December 23, 1997") msPerDay = 24 * 60 * 60 * 1000 ; timeLeft = (BigDay.getTime() - today.getTime()); e_daysLeft = timeLeft / msPerDay; daysLeft = Math.floor(e_daysLeft); e_hrsLeft = (e_daysLeft - daysLeft)*24; hrsLeft = Math.floor(e_hrsLeft); minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60); document.write("<h4>Uz zostava len " + daysLeft + " dni " + hrsLeft +" hodin a " + minsLeft + " minut od mojich narodenin 23. decembra 1997 !</h4>"); // --> </SCRIPT> </body> </html>
[ Navrat / BACK ]