JQuery socolorpacker web Color Picker _jquery

Source: Internet
Author: User

Not uncommon jquery features, compatible with all versions above jquery1.2.6

Instance Preview

Introducing Files

<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>

How to use

<input type= "text" class= "TXT" id= "txt_pack_1" name= "txt"/>
$ (' #txt_pack_1 '). Socolorpacker ();

Socolorpacke parameters

$ (obj). Socolorpacker ({
changetarget:null,//color selection after the target object is filled in or changed, default null is the current reference method object
Textchange:true,// Whether to fill in the target object
colorchange:1,//value: 0,1,2, 0: Unchanged, 1: Change the color of the text, 2: Change the background color
selfbgchange:false,//change their background color
Size:2,//value: 1,2,3, change color picker performance size, 1: Small, 2:3: Large
x:0,////color picker coordinate x axis offset
y:20,//color picker coordinate y-axis offset
styleclass:null,// Custom add class name, can not be the default "Colorpackerbox"
callback:callback:function () {}//Click Color cells to return the event

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.