You can play with CSS to make it look the way you want. The inside of the slider:
<----[]
gets its background from .ui-widget-header , the outer part of the slider:
<----[]
gets its background from .ui-widget-content . To undo them, you just need toggleClass to switch these classes to the widget as a whole (for the outer background) and thumb (for the inner area). The outer region is just a slider, the inner region .ui-slider-range inside the slider.
For example, if you have a slider:
<div id="slider-range"></div>
Then you can flip the backgrounds with this:
$('#slider-range, #slider-range .ui-slider-range').toggleClass('ui-widget-header ui-widget-content');
You may need to keep track of which mode is in the slider, or just check the classes on #slider-range .ui-slider-range .
Demo: http://jsfiddle.net/ambiguous/Mu8XS/
If you are uncomfortable with switching jQuery-UI classes, you can wrap the slider in <div> , switch the class to <div> and override jQuery-UI CSS:
.inverted .ui-widget-content { } .inverted .ui-widget-header { }
You can then switch .inverted to a <div> wrapper to swap backgrounds around.
source share