Say hello to ColorPicker.JS – the successor of one of my oldest scripts ColorPicker.XML that was discontinued a year ago due to poor browser support.
Supply your webforms or rich text online editor with this multifunctional, easy to set up, crossbrowser and cool looking color picker.
All you have to do is to create instances of the script (you may have unlimited number of pickers on your page). You may select among 12 preset skins*, several modes, 8 color presets and even create custom color palettes.
Setting up ColorPicker.JS and putting it to work is a matter of minutes.
ColorPicker.XML 2 is a cool AJAX-driven color picker, that enables users to create multiple color pickers on a single webpage, use a set of ready-made skins and color presets in a few minutes. All you have to do is to declare the colorpicker(s) placeholder(s) – a simple <div /> with an ID (although, practically any html element could be used as a placeholder), set a number of useful properties related to it’s appearance and functionality and reload the page. The script well generate semantic and accessible html code with amazing functionality and versatility. The set of skins allows the colorpicker to be integrated into any design. On the other hand, custom skins may be created with ease even by unexpercienced users in no time.
Of course, you may attach custom functions that set color to any css property (and respectively html element) or execCommand(”, ”, ”) in browser-based rich-text editors.
Please, refer to the INSTALLATION_NOTES.txt, included in the distribution file for more information about the properties and their usage.
This script is included in the latest version of Acid.JS – The AJAX Tools and Widgets Library as well.