homepage Welcome to WebmasterWorld Guest from 54.227.67.210
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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
frankb3




msg:4355529
 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?

 

httpwebwitch




msg:4355531
 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.

frankb3




msg:4355561
 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