»
EnglishFrenchVietnamese

Print - Stop on 100 - JavaScriptBank.com

Full version: jsB@nk » Game » Stop on 100
URL: https://www.javascriptbank.com/stop-on-100.html

Stop on 100 © JavaScriptBank.comGame requires gamers are agile.

Full version: jsB@nk » Game » Stop on 100
URL: https://www.javascriptbank.com/stop-on-100.html



CSS
<STYLE>FONT {FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: Comic Sans MS}INPUT {BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BACKGROUND: #4682b4; BORDER-LEFT: 1px solid; COLOR: #00ff00; BORDER-BOTTOM: 1px solid; FONT-FAMILY: comic sans ms}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language=JavaScript>function Title() {document.title="STOP ON 1o0 By  Nolan Gendron"; window.setTimeout("Title1();",1);}function Title1() {document.title="STOP ON 10o By Nolan Gendron"; window.setTimeout("Title();",1);}counter=0;function Counter1() {window.status="Counter: " + counter;document.game.number.value=counter; counter++;Time=window.setTimeout("Counter1();",1); if (counter==106) {counter=0;}}function Results() {window.clearTimeout(Time);if (counter==101) {alert("Yay! You stopped on 100!");}if (counter!=101) {counter--;alert("Aw! You missed it and got " + counter + " instead! Try again!");}counter=0;window.status="Counter: " + counter;document.game.number.value=counter;}</SCRIPT><SCRIPT language=JavaScript>document.onmousedown=clickfunction click() {if ((event.button==2) || (event.button==3)) {alert("Want the game on your site? Email me @ [email protected]");alert("and tell me your name what site your gonna put it on.");}}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onkeypress=Results(); onload=Title();><FORM name=game><INPUT style="FONT-SIZE: 200px" onfocus=this.blur(); size=2 value=0 name=number><BR><INPUT onclick="Counter1(); counter=0;" type=button value=Start> <INPUT onclick="Results(); counter=0;" type=button value=Stop!> <INPUT onclick="alert('Stop on 100 by Nolan Gendron \n Rules: \n The aim of the game is to make your counter stop at 100. To start your counter click the Start button , To stop it click the Stop! button or press any key on your keyboard');" type=button value=Rules> <BR><FONT size=+0><B>Hint:</B> You can also stop by using your keyboard by pressing a letter, number and/or spacebar.<BR>Stop on 100 by Nolan Gendron</FONT> </FONT></FORM></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->