Results 1 to 5 of 5

Thread: Pausing up-down Scroller - Pull content from list within HTML

  1. #1
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing up-down Scroller - Pull content from list within HTML

    Pausing up-down Scroller
    http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

    Very much like the glossy accordion menu, 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:
    Code:
    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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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 (no pausing effect, however)
    - Featured Content Slider (just remove the pagination links altogether to create a true scroller).
    DD Admin

  3. #3
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Unfortunately, neither of those do the nice "news style" scroll. Is it easy to modify either of those to do that?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

  5. #5
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •