There is a block with horizontal scroll
<div class="popular-items">
<div class="popular-wrapper">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
</div><!-- .popular-wrapper -->
</div><!-- .popular-items-->
.popular-items {
clear: both;
overflow: hidden;
}
.popular-wrapper {
clear: both;
overflow-x: scroll;
overflow-y: hidden;
}
.popular-items ul {
width: 1200px;
}
.popular-items li {
width: 238px;
height: 440px;
float: left;
text-align: center;
border: 1px solid red;
}
The problem is the scroll bar has to look exactly like this one
How can I replace the standart scroll with custom one? May be there are some jQuery plugins? Or any other solutions?
Appreciate any help.
For this job I usualy use this plugin: http://jscrollpane.kelvinluck.com/ (there are demos for vertical and horizontal scroll)
Easy and customizable. (but it may take a little more work to make that green line)
I solved the problem using jQuery Ui Slider
http://jsfiddle.net/DjHRs/5/