»
AnglaisFran�aisVietnamien

Imprimer - CheckBoxes - JavaScriptBank.com

Version compl�te: jsB@nk » Game » Qualification » CheckBoxes
URL: https://www.javascriptbank.com/checkboxes.html

CheckBoxes © JavaScriptBank.comJuste le nombre de boîtes que vous pouvez vérifier en 20 secondes? Jouer à cette question JavaScript jeu et find dehors.

Version compl�te: jsB@nk » Game » Qualification » CheckBoxes
URL: https://www.javascriptbank.com/checkboxes.html



JavaScript
<SCRIPT LANGUAGE="JavaScript">// Tomer Shiran<!-- Beginvar total = 0var play = falsefunction display(element) {var now = new Date()if (!play) {play = truestartTime = now.getTime()}if (now.getTime() - startTime > 20000) {element.checked = !element.checkedreturn} if (element.checked)total++elsetotal--element.form.num.value = total}function restart(form) {total = 0play = falsefor (var i = 1; i <= 100; ++i) { form.elements[i].checked = false   }}// End --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<SCRIPT LANGUAGE="JavaScript"><!-- Begindocument.write("<FORM><CENTER>")document.write('<INPUT TYPE="text" VALUE="0" ');document.write('NAME="num" SIZE=10 onFocus="this.blur()"><BR>')document.write("<HR SIZE=1 WIDTH=40%>")for (var i = 0; i < 10; ++i) {for (var j = 0; j < 10; ++j) {document.write('<INPUT TYPE="checkbox" ');document.write('onClick="display(this)">')}document.write("<BR>")}document.write("<HR SIZE=1 WIDTH=40%>")document.write('<INPUT TYPE="button" VALUE="restart" ');document.write('onClick="restart(this.form)">')document.write("</CENTER></FORM>")// End --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->