...

View Full Version : Timer on Marquee



surferdave
07-08-2002, 06:06 PM
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

Mrs G
07-08-2002, 07:28 PM
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

Mrs G
07-22-2002, 08:11 PM
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>

Mrs G
07-22-2002, 08:18 PM
don't know why it happen but there appears to be a space in the word javascript

Javascript is one word:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum