/
REFLEKSİNİ ÖLÇ
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Kurtis Dinelle :: http://www.spamburger.net */
playing=false;
function startClock(){
if(playing==false) {
the_time=setInterval('document.game.timer.value++',1);
}
playing=true;
}
function stopClock() {
// You can change the two numbers ("500") below to a different value.
score=Math.abs(document.game.timer.value-500);
if(playing==true&&score<500) {
clearInterval(the_time);
alert('Your score is '+score+'.');
playing=false;
if(score==0) {
alert('Woo hoo! Perfect Score!');
}
document.game.timer.value=0;
}
}
To play the game, click on the button to the left. The counter will start. Click on the button again to stop the counter. To win, you have to stop the counter between "98-100" (including extremes). The number you clicked on will be displayed on the right. Simple!