var picker = new dhtmlXColorPicker(parent,click,colors,hide,full)
where
<div id='my_picker_here'></div> <script> //common init code var picker = new dhtmlXColorPicker("my_picker_here",false,true); </script>
Starting from 2.5 version, color-picker can be initialized by object notation
var picker = new dhtmlXColorPicker({ some_option1:some_value_1, some_option2:some_value_2, ... some_optionN:some_value_N, })
picker = new dhtmlXColorPicker({ parent:"my_picker_here", onSelect:function(){ alert("color selected"); } });