codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<html> <STYLE type='text/css'> textarea {overflow-x: hidden; overflow-y: scroll} </STYLE> <head> <title>Counting</title> <script type="text/javascript" ><!-- function incNumToText(oEvent, textAreaId) { var iNum = 0; var iMax = 1000; var iIntervalId = null; text_area = document.getElementById(textAreaId); function incNum() { iNum++; text_area.value = iNum + " ..." ; if (iNum == iMax) { clearInterval(iIntervalId); } } iIntervalId = setInterval(incNum, 0.00001); } --> </script> </head> <body> <p>Counting</p> <p><textarea id="txt1" rows="15" cols="50"></textarea></p> <p> <input type="button" onclick="incNumToText(event,'txt1');" value="Counting"> </p> </body> </html>
Private
[
?
]
Run code