<FORM name=abcdef>Csak <INPUT size=2 value=0 name=b> hónap, <INPUT size=2 value=9 name=c> nap, <INPUT size=2 value=8 name=d> óra, <INPUT size=2 value=4 name=e> perc, és <INPUT size=2 value=36 name=f> másodperc van még hátra újévig!!! </FORM> <SCRIPT language=JavaScript>
<!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.javascript-page.com
var Temp2; var timerID = null; var timerRunning = false;
var timerID = null; var timerRunning = false;
function stopclock () { if(timerRunning) clearTimeout(timerID); timerRunning = false;
}
function startclock () { stopclock(); showtime();
}
function showtime() {
now = new Date(); var CurHour = now.getHours(); var CurMinute = now.getMinutes(); var CurMonth = now.getMonth(); var CurDate = now.getDate(); var CurSecond = now.getSeconds(); now = null; var Hourleft = 23 - CurHour var Minuteleft = 59 - CurMinute var Secondleft = 59 - CurSecond var Monthleft = 11 - CurMonth var Dateleft = 31 - CurDate
document.abcdef.b.value = Monthleft document.abcdef.c.value = Dateleft document.abcdef.d.value = Hourleft document.abcdef.e.value = Minuteleft document.abcdef.f.value = Secondleft
timerID = setTimeout("showtime()",1000); timerRunning = true; }
startclock(); // -->
</SCRIPT> |