Assuming you want to customize your browser scrollbar,
You can do it easily with some nice jQuery plugins, or you can do the magic with css. But it only works in webkit browsers, here's how
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); -webkit-border-radius: 10px; border-radius: 10px; } ::-webkit-scrollbar-thumb { -webkit-border-radius: 10px; border-radius: 10px; background: rgba(255,0,0,0.8); -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); } ::-webkit-scrollbar-thumb:window-inactive { background: rgba(255,0,0,0.4); }
Source: http://css-tricks.com/custom-scrollbars-in-webkit/
Otherwise, you can use the plugin. (Recommended)
As in the early commentary, I suggest using the niceScroller plugin. It is nice and easy.
Source: http://areaaperta.com/nicescroll/
Simple implementation
<script> $(document).ready( function() { $("html").niceScroll(); } ); </script>
source share