biletari
Membru Junior
 Inregistrat: acum 17 ani
Postari: 143
|
|
<html> <head> <script type="text/javascript"> var c=0; var t; function timedCount() { document.getElementById('txt').value=c; c=c+1; t=setTimeout("timedCount()",1000); }
function stopCount() { clearTimeout(t); } </script> </head>
<body> <form> <input type="button" value="Start count!" onClick="timedCount()"> <input type="text" id="txt"> <input type="button" value="Stop count!" onClick="stopCount()"> </form> <p> Click on the "Start count!" button above to start the timer. The input field will count forever, starting at 0. Click on the "Stop count!" button to stop the counting. </p> </body>
</html>
un cronometru dragut copiat de unde am putut si eu :zzz:
Modificat de biletari (acum 17 ani)
_______________________________________ biletari
|
|