JQuery soColorPacker web page color picker and jquery color picker

Source: Internet
Author: User

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 });

Related Article

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.