Justin Meltzer
Justin Meltzer

Reputation: 13558

How do I use the jquery scrollbar paper plugin?

I want to use the jquery scrollbar paper plugin to alter the style of scrollbars within the document. However the page for the plugin does not seem to have any documentation. How am I supposed to use this plugin (aside from including the js and css files the downloaded zip file gives you)?

Upvotes: 1

Views: 3588

Answers (2)

tommyh
tommyh

Reputation: 181

The code and some examples can be found on the plugin's googlecode page:

http://code.google.com/p/scrollbarpaper/source/browse/#svn%2Ftrunk

Upvotes: 1

Stephen Wood
Stephen Wood

Reputation: 846

The example page shows that all you need to do is use the jQuery plugin on any elements you want to have a custom scrollbar.

$('.use-scrollbarpaper').scrollbarPaper();

And this adds divs with classes scrollbarpaper-track, scrollbarpaper-container and scrollbarpaper-drag which I presume are styled by default in the CSS provided, so you can style them as required.

Upvotes: 1

Related Questions