Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   how do I make text marque? (http://www.go4expert.com/forums/i-text-marque-t22978/)

pein87 10Aug2010 05:37

how do I make text marque?
What I want to do is make the text marque inside a fixed width div. I was thinking that I should get the element by id, get its height, and width. determine the inner divs height and width. Since the inner div would be clipped from view by the parent div because I'd use overflow: hidden; in the css rule for it. Then I would += the inner divs top value until the bottom reaches the top and then reset it so it flows smoothly. Would anyone know how to implement this? I suck at javascript animations but I'd like to stop on mouse over and resume on mouseout.

johnny.dacu 12Aug2010 18:24

Re: how do I make text marque?
How do intend to reset it smoothly. i ask because i imagine when you reset somehow the change will be visible to user. Instead you could try to define inner boxs with relative postion. When animation plays check if the bottom for first item has reach the top border and then move it to the bottom this way you could have a continous animation.

parryfreelance 12Aug2010 18:45

Re: how do I make text marque?

What is text marque..??? meet again.

ManzZup 13Aug2010 18:47

Re: how do I make text marque?
dude you thnk about using the jscrpt animation or the common html marquee?
it you juzt need to post something you can always use <marquee></marquee>
if you want beyond that well you need jscript

shabbir 13Aug2010 19:28

Re: how do I make text marque?
<marquee></marquee> does not behave rightly in all browser.

All times are GMT +5.5. The time now is 11:03.