You can init slider by object, it can be useful if you need to change only few of default settings. The name of config object properties the same as names of constructor parametrs
From HTML
You can init slider from existing HTML input - just add dhtmlxSlider css class to it.
//in addition to standard set of js files for slider, add this one to activate autoinitialization
//set class attribute value of input element to "dhtmlxSlider"
dhtmlxSlider support few predefined skins, and can be easily adjusted to any custom skin.
Predefined skin can be chosen as third parameter of constructor
Available values are:
default
ball
zipper
arrow
arrowgreen
simplesilver
simplegray
bar
Skin can be chnaged on the fly - after initialization.
You can define your own action on the moment user changes position of slider cursor. Use syntax which is common for all dhtmkx components:
slider.attachEvent("onChange",function(newValue,sliderObj){
alert("New values is "+newValue);
});