|
-
Sep 7th, 2004, 11:40 AM
#1
Thread Starter
Fanatic Member
using setTimeout
hi there,
The following script is for moving an object(a textbox).but it does not move
help me fixing the problem please.And is it possible to display
"setTimeout value" as the script is running...!!
thanks a lot
*********************************
<SCRIPT LANGUAGE="javascript">
function runrace()
{
document.bgColor="red";
document.fn.text1.style.left = document.fn.text1.style.left+=50;
setTimeout("runrace()", 100);
}
</script>
<form name=fn>
<input type=button value="start" onclick="runrace()"><br>
<INPUT TYPE=TEXT NAME="text1" SIZE="3">
</form>
Last edited by merhaba; Sep 7th, 2004 at 11:43 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|