Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Los Angeles
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Timer on Marquee

    Hello

    I have a Marquees and a DHTML dynAnimation text (where Text fly in on to the page). When the page load the Marquees pop and the flying text comes in at the same time. Making the page look too busy.

    Can someone help me with a timer, so I can have the effects happen one after another?

    Thanks

    Dave
    Surfer Dave

  • #2
    New Coder
    Join Date
    Jul 2002
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could try using the :

    setTimeout("yourfunction ()",time)

    Where yourfunction is the function that starts the flying text and time) is the delay in milliseconds

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here are two examples of delaying a Marquee.

    The speed of the marquee is 5
    The delay of the marquee is 5 seconds.

    The second example is hidden until the marquee runs



    <script>
    function move(){
    javascript:scroller.scrollAmount=5

    scroller2.style.visibility="visible"
    javascript:scroller2.scrollAmount=5
    }
    setTimeout("move()",5000)
    </script>



    <marquee id="scroller" behavior=alternate onstart="this.scrollAmount=0" A Marquee Message</marquee>


    <marquee id="scroller2" behavior=alternate onstart="this.scrollAmount=0" style="visibility:hidden">A Marquee Message</marquee>

  • #4
    New Coder
    Join Date
    Jul 2002
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts
    don't know why it happen but there appears to be a space in the word javascript

    Javascript is one word


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •