Parašė mXt· 2007 Rugp. 25 11:08:52
#2
<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( "(Cia jusu uzrasas) "+daysLeft+"</b> dienų, <b>"+hrsLeft+"</b> valandų ir <b>"+minsLeft+"</b> min.");
</SCRIPT>
Redagavo Rytis· 2007 Rugp. 25 12:08:18