Forum Moderators: open

Message Too Old, No Replies

Javascript Horizontal Scroll

         

madk

8:07 pm on Oct 6, 2006 (gmt 0)

10+ Year Member



Hello,

I am a rookie Javascripter and in need of some help. I'm looking for a script that'll allow me to scroll div content horizontally.

I would like it to be controllable by hovering over text or an image.

I've done a bit of searching and can't quite figure this out. Any help would be greatly appreciated.

matt

DrDoc

5:11 am on Oct 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Before going into further detail ... wouldn't it be easier to simply assign the
overflow: scroll
CSS property? It is certainly easier, does what you want, and will work in all modern browsers without use of JavaScript. It is also more accessible and usable by your visitors.

Why re-invent the wheel?

RonPK

3:42 pm on Oct 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



madk, do you want the div's content to scroll, like a news ticker?

DrDoc

5:15 pm on Oct 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good call, RonPK ... Wasn't even thinking thus far.