jQuery("#win").iscrollbar({ vscroll: false, hscroll: true, scrollOffset: 300 });
jQuery("#winv").iscrollbar({});
jQuery("#winvh").iscrollbar({ vscroll: true, hscroll: true, color: 'red' });
Option | Default | Description |
hoverOffTime | 200 | Time to fadeout when hovered off of scrollable div |
vscroll | true | Enable vertical scrolling |
hscroll | false | Enable horizontal scrolling |
edgeOffset | 5 | Distance from the edge of the scrollable div |
thickness | 10 | The thickness of the scrollbar |
scrollOffset | -1 | The number of pixels to scroll every time. -1 for scroll by 10% of the inner div |
color | "#000" | Color of the scrollbar |
opacity | 0.65 | Opacity of the scrollbar |
inner | null | The inner div to scroll. If set to null, the plugin will automatically select the first div inside the scrollable div as the inner div. To specify a specific element use a jQuery selector (ie. $(".inner")) |
onScrollStart | function(){} | Callback function that executes when the scrollbar starts being dragged |
onScrollDrag | function(){} | Callback function that executes when the scrollbar is being dragged or when the mousewheel is scrolling |
onScrollStop | function(){} | Callback function that executes when the scrollbar stops being dragged |