HBcms Color Picker
It's cool: Looks like Microsoft Windows/Office Color Picker
It's simple: Only 1 HTML file ( No additional js,css or images )
Easy to use: Just add a javascript onclick event to get to work
Features:
- Transfer selected color
- DoubleClick to select color
- Any number of form fields can use the picker to pick up a color value
- It's FREE! Released under LGPL license.
Related Links:
HBcms.net(English)
HBcms.com(Chinese)
Thanks:
HBW
8TA
How to use:
- Download HBcms Color Picker file ( hbcms_color_picker_en.html )
Move the file to your web directory, eg. /script/hbcms_color_picker_en.html
- Add a javascript function getMyColor to your page which include a color picker requirement:
Note: In function getMyColor, Your must set the right hbcms_color_picker_path to the Color Picker file.
- Add a javascript onclick event to your input field:
<form>
...
<input size="10" onclick="getMyColor(this)" name="my_color" id="my_color" value="red" onmouseover="this.style.color=this.value;" />
... </form>
Note: The input field must be in a form.
- Done, Enjoy it!
|