PDA

View Full Version : Change slider colour when changing value



alexmd
8 Jul 2010, 7:14 AM
Hi,
I would like to change the colour of an slider when I change his value. I use addClass and removeClass to change it but it doesn't work. If a define in my css a rule like

.x-slider-horz .x-slider-thumb {
background-image:url(../images/default/slider/slider-thumb-red.png);
}

i get the slider red but if I make

sliderBrowser.addListener('change', function(slider, x, y) {

slider.addClass('yellow-slider');
slider.removeClass('x-slider-horz');
alert('Panel resized to ' + x + 'x');
});

Any suggestions ?? thanks