I use a custom background for my slider by overriding the CSS:
.ui-widget-content {background: transparent url(../img/bg.png) no-repeat;}
Slider's behavior is controlled by:
$(document).ready(function() {
$(".myslider5").slider({
animate: "true",
step: 1,
min: -1950,
max: 1950,
value: 0,
slide: function(event, ui) {
// magic happens here
}
});
$(".myslider3").slider({
animate: "true",
step: 1,
min: -1350,
max: 1350,
value: 0,
slide: function(event, ui) {
// magic happens here
}
});
So, myslider5
and myslider3
are the two classes. But their background images need to be different. How do I go about doing this?