So, I want to customize the scrollbar, and I found a tiny scrollbar, which is a jquery plugin:
http://baijs.nl/tinyscrollbar/
The problem is that I can not make it work no matter what. I included jQuery and jquery.tinyscrollbar.js files in the same folder as my html and css, and also included them in the header section, but I can't get it to work ...
when I open the file from the client side, all I get is the usual search scrollbar, as you can see below:
Here is my code:
HTML
<html> <head> <link rel="stylesheet" type="text/css" href="scrolltest.css" /> <script src="jquery.js"></script> <script src="jquery.tinyscrollbar.js"></script> <script> $(document).ready(function() { $("#chatlist").tinyscrollbar(); }); </script> </head> <body> <div id="chatlist" > <ul> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> </ul> </div> </body> </html>
CSS
div#chatlist { width: 50px; height: 140px; border: 1px solid black; overflow:scroll; }
Any help would be greatly appreciated!
source share