PDA

View Full Version : Slick Custom Scrollbar - Multiple Divs



SerenaD
12-13-2011, 04:54 PM
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! :confused:

ddadmin
12-14-2011, 06:00 AM
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?


$( 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.