»
EnglishFrenchVietnamese

Print - Stop it - JavaScriptBank.com

Full version: jsB@nk » Game » Stop it
URL: https://www.javascriptbank.com/stopit.html

Stop it © JavaScriptBank.comGame requires gamers are agile.

Full version: jsB@nk » Game » Stop it
URL: https://www.javascriptbank.com/stopit.html



JavaScript
<SCRIPT language=javascript>function win() {if(document.game.scroll.value==document.game.num.value){alert('Well done!')}else{alert('Unlucky.')}}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<TABLE border=1>  <TBODY>  <TR>    <FORM name=game>    <TD rowSpan=4><SELECT size=4 name=scroll> <OPTION value=1>1<OPTION         value=2>2<OPTION value=3>3<OPTION value=4>4</OPTION></SELECT> </TD>    <TD><INPUT onclick=win() type=button value=STOP!> on No. <INPUT       onblur="if(this.value > 4){alert('Select a lower number');this.select()}"       maxLength=1 size=1 value=3 name=num> </TD></TR><BR>  <TR>    <TD align=middle>Level:<SELECT name=level> <OPTION value=210         selected>Easy<OPTION value=110>Medium<OPTION value=55>Hard<OPTION         value=18>Ace!!!</OPTION></SELECT></TD></TR></FORM>  <SCRIPT language=javascript>function move() {menu = document.game.scrollchosen = menu.selectedIndexmenu.selectedIndex= (chosen == (menu.length-1)) ? 0 : chosen + 1setTimeout("move()",document.game.level.value)}move()  </SCRIPT>  </TBODY></TABLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->