Results 1 to 2 of 2

Thread: Slick Custom Scrollbar - Multiple Divs

  1. #1
    Join Date
    Dec 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Slick Custom Scrollbar - Multiple Divs

    1) Script Title: Slick Custom Scrollbar

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc.htm

    3) Describe problem: How can I use multiple instances of the Slick Custom Scrollbar? When I add additional Divs to my page, they all scroll at the same time if you try and scroll one. Thanks!

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

    Default

    It's possible to have multiple scrollable contents, as shown on the DD demo page already. Does each of your scrollable content contain a unique "rel" attribute for the script to identify using?

    Code:
        $( document ).ready( function() {
            $( "div[rel='scrollcontent1']" ).customscroll( { direction: "vertical" } );
            $( "div[rel='scrollcontent2']" ).customscroll( { direction: "horizontal" } );
        });
    If you need further help, please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

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
  •