[原创]javascript计时器只要有浏览器就行 保存成扩展名为.htm用浏览器打开就行
<p></p><p><!--Timer--><br/><script><br/>var sec=0;<br/>timeID=setInterval("count()",1000);<br/>function count()<br/>{<br/> num.innerHTML=sec++;<br/>}<br/></script><br/><b>-Timer- /*for Rubik's Cube*/</b><br/><hr><br/>Take Seconds:<br/><h1><text id="num">0</text></h1><br/><hr><input type="button" value="Stop" onclick="clearInterval(timeID)" /><br/><hr>Release page to restart timer :D<br/><hr>By - Spirit 2007-10-22<br/></p>
页:
[1]