/ColorBox

create a panel to select the color you want.取色器.based on js,jquery.

Primary LanguageJavaScript

ColorBox

create a panel to select the color you want.取色器.based on js,jquery.

使用方法[using method]

初始化[init]

html part

<div class="color_bo"></div>

actually, the color_bo can change to any string you like.
but it should keep the same with the follow when you use it.

js part

var c = new ColorBox($(".color_bo"));
c.initBox();

now you have the panel on your website
demo

取值方法[the method to get value]

you can use c.value to get the value.it's a decimal number
if you want to get the hexadecimal value like #FFFFFF
you can use c.getStringValue().