View Full Version : Pausing up-down Scroller - Pull content from list within HTML

08-12-2008, 05:29 PM
Pausing up-down Scroller

Very much like the glossy accordion menu (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm), I would like to populate the scrolling text from an unordered list within a class in the main HTML, and have all other code outside in the .js file.

From my very minor understanding of scripting, to do what I describe below, I need to change the bolded section:

function pausescroller(content, divId, divClass, delay){

Again, like the glossy accordion menu, I would like to define each <li> as its own <div> class in css, and have the whole div scroll up, rather than just a line of text.

Why do I want to be able to do this, you ask? Because if you look at the results of this scroller without CSS, but with javascript, it's a mess!!

I would like the script to do nothing if no CSS, and show the content as an unordered list.

08-12-2008, 08:05 PM
There's no easy way to get this script to scroll regular HTML contents unfortunately. Two scripts on DD that do support this are:

- Pro HTML Scroller (http://www.dynamicdrive.com/dynamicindex2/prohtmlticker.htm) (no pausing effect, however)
- Featured Content Slider (http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm) (just remove the pagination links altogether to create a true scroller).

08-12-2008, 08:10 PM
Unfortunately, neither of those do the nice "news style" scroll. Is it easy to modify either of those to do that?

08-12-2008, 08:17 PM
Hmm not any easier than modifying the original script to support regular HTML. :) The best I can do right now is add such a script to the list of potential new scripts to be added in the next few weeks.

08-12-2008, 09:11 PM
That would be fantastic!

I can see it being relatively easy for single-line list items, but not sure how you'd handle list items / divs of various heights.

In my use, it just scrolls through a series of company endorsements / tag lines. They're all one line each, and all the same style.

If you'd like, I can send you a link, and you can check it out in whatever current form it happens to be. I'd post the link, but I'd rather not publicly link a beta version of a corporate site.