dhtmlxColorPicker can be initialized on page either based on DIV element (in this case its position is defined by position of this DIV) or attached to some text input (in this case position of ColorPicker will be assigned to position of INPUT element taking its visibility on page into account )
There are three ways to set path:
If you add attribute "colorbox" to your input, it will get small square with chosen color as a background in front of it
dhtmlxColorPicker has number of javascript methods which help to define its properties on the fly:
Custom Color palette can be used to keep colors which are most useful or popular for the case. User can add color there by selecting necessary custom color palette cell and pressing Add To Custom Colors button. Chosen value will be saved in cookies, thus it will be available to user next time he visit the page.
v.1.0 doesn't allow programmatic way of setting Custom Colors Palette values
You can define your own action for the moment when user has chosen the color. To do this use setOnSelectHandler method. Event handler which is defined this way will get color value as incomming argument