Results 1 to 5 of 5

Thread: using setTimeout

Threaded View

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    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
  •  



Click Here to Expand Forum to Full Width