说明: 鼠标点击速度测试游戏
效果: 运行后查看!
代码: 要完成此效果把如下代码加入到<body>区域中
function hithead(id) { if(playing==false) { clrholes(); display("Push Start to Play"); return; } if(currentpos!=id) { totalhits+=-1; document.cpanel.score.value=totalhits; document.dmz.elements[id].checked=false; } else { totalhits+=1; document.cpanel.score.value=totalhits; launch(); document.dmz.elements[id].checked=false; } }
function random() { return(Math.floor(Math.random()*100%numholes)); } // End --> </script> <center>看看你在30秒内能点中多少次</center> <form name="cpanel"> <center> <table cellspacing=3> <tr> <td><input type="button" name="startstop" value="开始|停止" onClick="play()"></td> <td><pre> </pre></td> <td align=right>时间:</td> <td><input type="text" name="timeleft" size="4" onFocus="this.blur()"></td> <
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18