function mouseDown(e) { if (parseInt(navigator.appVersion)>3) { var clickType=1; if (navigator.appName=="Netscape") clickType=e.which; else clickType=event.button; if (clickType!=1) return false; } return true; } /* ********* / is ouderwets was dit wel nodig? if (parseInt(navigator.appVersion)>3) { document.onmousedown = mouseDown; if (navigator.appName=="Netscape") document.captureEvents(Event.MOUSEDOWN); } **************/ var secs=10 var timerID = null var timerRunning = false var delay = 1000 var today=new Date(); function InitializeTimer(s) { // Set the length of the timer, in seconds secs = s ; //Math.round(today.getTime()/1000); //i=document.getElementById('im'); //secs=i.width;window=alert(secs); StopTheClock() StartTheTimer() } function StopTheClock() { if(timerRunning) clearTimeout(timerID) timerRunning = false } function StartTheTimer() { if (secs==0) { StopTheClock() // Here's where you put something useful that's // supposed to happen after the allotted time. // For example, you could display a message: //alert("You have just wasted 10 seconds of your life.") alert("Hora est") } else { self.status = secs secs = secs - 1 timerRunning = true timerID = self.setTimeout("StartTheTimer()", delay) i=document.getElementById('timer-im'); i.width=secs; } }