This plugin is made to cover the scrollbar with a slider so you can style it.
Works in: IE 8, FireFox, Safari and Google Chrome.
Problems found in IE 6 and in Opera browsers.
You need to add the id of the element where you want to have the cover scrollbar. Also don't forget to add the CSS for the knob and element of the slider.
JavaScript:
new ScrollBarCover('the_id_of_the_element', 'namespace');
CSS:
id:
- namespace + -scrollbarcover-cover-wraper
- namespace + -scrollbarcover-slider-container
- namespace + -scrollbarcover-slider-element
- namespace + -scrollbarcover-slider-knob
class:
- scrollbarcover-cover-wraper
- scrollbarcover-slider-container
- scrollbarcover-slider-element
- scrollbarcover-slider-knob