homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

How to build data driven text scroller?
Best sources

Msg#: 4355527 posted 1:44 pm on Aug 26, 2011 (gmt 0)

Any suggestions on the best way to implement a data driven text scroller to my site, compatible with Dreamweaver?



WebmasterWorld Administrator httpwebwitch us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4355527 posted 2:01 pm on Aug 26, 2011 (gmt 0)

search for open-source JavaScript examples, and pick one you like. Most of them will get their data either from markup rendered to the page, or via AJAX calling a script to get the data as XML or JSON.

I did one a while ago. I was dissatisfied with the ones I saw so I coded my own. It's basically a rectangle with text in it that gets positioned inside a cropping container (CSS, overflow:hidden), and gets a nudge downward every 100 milliseconds. Actually the scrolling text part is a stack of smaller rectangles positioned absolutely inside a container with relative positioning. When one rectangle scrolls out of the frame (ie its "top" is greater than the container's "bottom") I reposition it back on top of the stack and the whole thing keeps looping and scrolling.

Look for something built with Mootools or JQuery; then you can be more confident that it'll work in all browsers.


Msg#: 4355527 posted 2:48 pm on Aug 26, 2011 (gmt 0)

Thanks for the info.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved