Jquery ¸¦ ÀÌ¿ëÇÑ Spectrum Color Picker ÀÔ´Ï´Ù.
´Ù¸¥ Ä÷¯ÇÇÄ¿¿¡ ºñÇØ ¿É¼ÇÀÌ Àß Á¤¸®µÇ¾î Àֳ׿ä.
$("#picker").spectrum({
color: tinycolor,
flat: bool,
showInput: bool,
showInitial: bool,
allowEmpty: bool,
showAlpha: bool,
disabled: bool,
localStorageKey: string,
showPalette: bool,
showPaletteOnly: bool,
togglePaletteOnly: bool,
showSelectionPalette: bool,
clickoutFiresChange: bool,
cancelText: string,
chooseText: string,
togglePaletteMoreText: string,
togglePaletteLessText: string,
containerClassName: string,
replacerClassName: string,
preferredFormat: string,
maxSelectionSize: int,
palette: [[string]],
selectionPalette: [string]
});
À§ÀÇ ¿É¼Çµé¿¡ ´ëÇؼ´Â http://bgrins.github.io/spectrum/ ÇØ´ç ÆäÀÌÁö¿¡ ¼³¸í°ú ÇÔ°è ¿¹Á¦¸¦ Á¦°øÇÏ°í ÀÖÀ¸´Ï Âü°íÇϼż ... »ç¿ëÇϽøé ÁÁ½À´Ï´Ù.
±âº»ÀûÀ¸·Î ¾Æ·¡ÀÇ Äڵ带 ÀÌ¿ëÇÏ½Ã¸é ½ÉÇÃÇÑ Ä÷¯ÇÇÄ¿¸¦ È£ÃâÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ^^
<link rel="stylesheet" type="text/css" href="spectrum.css">
<script type="text/javascript" src="docs/jquery-1.9.1.js"></script>
<script type="text/javascript" src="spectrum.js"></script>
<input type="text" name="color" id="color" style="width:100px;" value="">
<script type="text/javascript">
<!--
$(function() {
$("#color").spectrum({
flat: false,
showInput: true,
preferredFormat: "rgb",
color: "#000000"
});
});
//-->
</script>
|