jQuery soColorPacker 網頁拾色器,jquery拾色器

來源:互聯網
上載者:User

jQuery soColorPacker 網頁拾色器,jquery拾色器

未採用生僻的jquery特性,能相容jquery1.2.6以上所有版本

執行個體預覽

引入檔案

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

使用方法

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


soColorPacke參數

$(obj).soColorPacker({changeTarget:null, //顏色選擇後填入或改變的目標對象,預設null為當前引用方法對象textChange:true, //是否將顏色值填入target對象colorChange:1, //值:0,1,2 ,0:不改變,1:改變文字顏色,2:改變背景顏色selfBgChange:false,//改變自身背景顏色size:2, //值:1,2,3,改變拾色器表現大小,1:小,2:中,3:大x:0,////拾色器座標x軸位移量y:20, //拾色器座標y軸位移量styleClass:null,//自訂添加class名,不能為預設的 "colorPackerBox"callback:callback:function(){}//點擊顏色單元返回事件});

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.