JQuery soColorPacker web page color picker and jquery color picker
Not using the uncommon jquery feature, compatible with all jquery1.2.6 and later versions
Instance Preview
Import File
<link type="text/css" rel="stylesheet" media="all" href="soColorPacker/css/style.css" /><script type="text/javascript" src="jquery1.8.0.min.js"></script><script type="text/javascript" src="jquery.soColorPacker-1.0.min.js"></script><script type="text/javascript" src="jquery.bgiframe-2.1.1.js"></script>
Usage
<input type="text" class="txt" id="txt_pack_1" name="txt" />$('#txt_pack_1').soColorPacker();
SoColorPacke Parameters
$ (Obj ). soColorPacker ({changeTarget: null, // specifies the target object to be filled or changed after the color is selected. The default value of null is textChange: true, // whether to fill in the color value in the target object colorChange: 1, // value: 0, 2, 0: do not change, 1: Change the text color, 2: change the background color selfBgChange: false, // change the background color size: 2, // value: 1, 2, 3, change the color picker performance, 1: small, 2: medium, 3: large x: 0, /// X-axis offset of the color picker coordinate y: 20, // styleClass of the y-axis offset of the color picker coordinate: null, // you can add a custom class name, cannot be the default "colorPackerBox" callback: function () {}// click the color unit to return the event });