Parašė 7even· 2009 Rugs. 10 18:09:13
#9
<SCRIPT LANGUAGE="JAVASCRIPT">
today = new Date();
BigDay = new Date("August 16, 2007")
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( "(Liko iki svetes:) "+daysLeft+"</b> dienų, <b>"+hrsLeft+"</b> valandų ir <b>"+minsLeft+"</b> min.");
</SCRIPT>