Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
CheckBoxes
Test your skill. How many boxes can you check in 20 seconds?
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin var total = 0 var play = false function display(element) { var now = new Date() if (!play) { play = true startTime = now.getTime() } if (now.getTime() - startTime > 20000) { element.checked = !element.checked return } if (element.checked) total++ else total-- element.form.num.value = total } function restart(form) { total = 0 play = false for (var i = 1; i <= 100; ++i) { form.elements[i].checked = false } } // End --> </SCRIPT>
Insert into <BODY>
<CENTER>Test your skill. How many boxes can you check in 20 seconds?</CENTER> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin document.write("<FORM><CENTER>") document.write('<INPUT TYPE="text" VALUE="0" NAME="num" '); document.write('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" 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>
Other Options