Results 1 to 2 of 2

Thread: marquee and setTimeout????

  1. #1

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

    marquee and setTimeout????

    What I want is to use MARQUEE to move the first image (or a word) down and another image move up....ok this is easy but I want this last only for 20 seconds...after 20 seconds let the first image move up as the other image move down......and let this repeat again...hope you got it...
    Last edited by merhaba; Nov 28th, 2002 at 09:33 AM.

  2. #2
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292
    <html>
    <head>
    <script>

    a = setInterval('moveIt()',5000);
    function moveIt() {
    alert('your code for the moving');

    }
    </script>
    </head>
    <body onLoad="moveIt()">
    </body>
    </html

    change 5000 to 20000
    replace my alert with your moving code

    setInterval can be used if you want it to repeat.
    you can alway clear the setInterval

    if you use setTimeOut it will do it once

    hope this helps you

    bsw

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