<SCRIPT LANGUAGE="JavaScript"> <!-- var timerID = null; var timerRunning = false; function showtime() { now = new Date(); var CurHour = now.getHours(); var CurMinute = now.getMinutes(); var CurMonth = now.getMonth(); var CurDate = now.getDate(); var CurYear = now.getYear(); var CurSecond = now.getSeconds(); now = null; var Secondleft = 59 - CurSecond var Minuteleft = 59 - CurMinute var Hourleft = 23 - CurHour var Dateleft = 31 - CurDate var Monthleft = 11 - CurMonth var Yearleft = 99 - CurYear var Sek1 = Minuteleft * 60 var Sek2 = Hourleft * 3600 var Sek3 = Dateleft * 86400 var Sek4 = Monthleft * 2628000 var Sek5 = Yearleft * 31536000 var Sekundy = Sek1 + Sek2 + Sek3 + Sek4 + Sek5 + Secondleft document.frm.left.value=Sekundy; timerID = setTimeout("showtime()",1000); timerRunning = true; } var timerID = null; var timerRunning = false; function stopclock () { if(timerRunning) clearTimeout(timerID); timerRunning = false; } function stopClock() { stopclock(); return; } function startclock () { stopclock(); showtime(); } // --> </script> <body onLoad="startclock()"> </head> <br> <center> <FORM NAME="frm"> <font face="Arial CE, Arial" size="2">Do 1. ledna 2000 zb²vß<br> <INPUT TYPE="textarea" NAME="left" SIZE=7 VALUE=""><br> sekund</font><br> </FORM> </center> |