how do I make text marque?

Ambitious contributor
10Aug2010,05:37   #1
pein87's Avatar
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.
Contributor
12Aug2010,18:24   #2
johnny.dacu's Avatar
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.
Newbie Member
12Aug2010,18:45   #3
parryfreelance's Avatar
hi...

What is text marque..??? meet again.
Skilled contributor
13Aug2010,18:47   #4
ManzZup's Avatar
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 like this
Go4Expert Founder
13Aug2010,19:28   #5
shabbir's Avatar
<marquee></marquee> does not behave rightly in all browser.