<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JavaScript Library Archive &#187; カラーピッカー</title>
	<atom:link href="http://javascript.webcreativepark.net/library/category/library/development/color_picker/feed" rel="self" type="application/rss+xml" />
	<link>http://javascript.webcreativepark.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 18 Sep 2011 10:18:29 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>シンプルなカラーピッカー「the jQuery Color Picker」</title>
		<link>http://javascript.webcreativepark.net/library/colorpicker</link>
		<comments>http://javascript.webcreativepark.net/library/colorpicker#comments</comments>
		<pubDate>Wed, 22 Sep 2010 10:14:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[カラーピッカー]]></category>
		<category><![CDATA[ライブラリ]]></category>
		<category><![CDATA[開発支援]]></category>

		<guid isPermaLink="false">http://javascript.webcreativepark.net/?p=248</guid>
		<description><![CDATA[配布元：Download the jQuery Color Picker and the Demo License: Free the jQuery Color Pickeはカラーピッカーを実装できる非常にシンプルなプラ [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://javascript.webcreativepark.net/wp-content/uploads/2010/09/20100922_01.jpg" alt="" title="20100922_01" width="450" height="250" class="size-full wp-image-249" /></p>
<p>配布元：<a href="http://www.intelliance.fr/jquery/color_picker/">Download the jQuery Color Picker and the Demo</a><br />
License: Free</p>
<p>the jQuery Color Pickeはカラーピッカーを実装できる非常にシンプルなプラグインです。</p>
<h3>利用方法</h3>
<p>まずはJavaScriptファイルとCSSファイルを読み込みます。結構な量です。</p>
<pre><code>&lt;script src="js/jquery/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery/ifx.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery/idrop.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery/idrag.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery/iutil.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery/islider.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery/color_picker/color_picker.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;link href="js/jquery/color_picker/color_picker.css" rel="stylesheet" type="text/css"&gt;
&lt;!--[if lt IE 7]&gt;
&lt;link rel="stylesheet" href="js/jquery/color_picker/color_picker-ie6.css" type="text/css"&gt;
&lt;![endif]--&gt;
&lt;!--[if gte IE 7]&gt;
&lt;link rel="stylesheet" href="js/jquery/color_picker/color_picker-ie7.css" type="text/css"&gt;
&lt;![endif]--&gt;</code></pre>
<p>カラーピッカー部分のHTMLは次のようになります。</p>
<pre><code>&lt;input type="text" id="myhexcode" /&gt;
&lt;a href="javascript:void(0);" rel="colorpicker&#038;objcode=myhexcode&#038;objshow=myshowcolor&#038;showrgb=1&#038;okfunc=myokfunc"&gt;&lt;span id="myshowcolor"&gt;&nbsp;&lt;/span&gt;&lt;/a&gt;</code></pre>
<p>#myhexcodeには選択後の色コードが入り、#myshowcolorをクリックした際にカラーピッカーが立ち上がります。#myshowcolorはCSSで次のように装飾しておくと良いでしょう。</p>
<pre><code>#myshowcolor{
	display:inline-block;
	width:15px;
	height:15px;
	border:1px solid black;
}</code></pre>
<p>スクリプトでは「$.ColorPicker.init()」を実行するとカラーピッカーが設定されます。</p>
<pre><code>$(function(){
	$.ColorPicker.init();
});</code></pre>
<p>色選択後のコールバック関数を設定したい場合は「myokfunc」という関数に設定しておきます。</p>
<pre><code>function myokfunc(){
	alert("This is my custom function which is launched after setting the color");
}</code></pre>
<p><a href="http://javascript.webcreativepark.net/sample/jQColorPicker/">サンプル</a></p>
]]></content:encoded>
			<wfw:commentRss>http://javascript.webcreativepark.net/library/colorpicker/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQueryベースのカラーピッカー 「Farbtastic」</title>
		<link>http://javascript.webcreativepark.net/library/farbtastic</link>
		<comments>http://javascript.webcreativepark.net/library/farbtastic#comments</comments>
		<pubDate>Tue, 18 Nov 2008 01:05:10 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[カラーピッカー]]></category>
		<category><![CDATA[ライブラリ]]></category>
		<category><![CDATA[開発支援]]></category>

		<guid isPermaLink="false">http://javascript.webcreativepark.net/?p=73</guid>
		<description><![CDATA[配布元：Farbtastic: jQuery color picker plug-in ライセンス: GPL FarbtasticはjQueryベースのカラーピッカー作成用のJavaScriptライブラリです。 Farb [...]]]></description>
			<content:encoded><![CDATA[<p>配布元：Farbtastic: <a href="http://acko.net/dev/farbtastic">jQuery color picker plug-in</a><br />
ライセンス: <a href="http://www.gnu.org/copyleft/gpl.html">GPL</a></p>
<p>FarbtasticはjQueryベースのカラーピッカー作成用のJavaScriptライブラリです。</p>
<h3>Farbtasticの使い方</h3>
<p><a href="http://jquery.com/">jQuery</a>をhead要素などで読み込みます。</p>
<pre><code>&lt;script type="text/javascript" src="../js/jQuery.js"&gt;&lt;/script&gt;</code></pre>
<p>Farbtasticの配布サイトよりダウンロードしてきた、farbtastic.jsとfarbtastic.cssをhead要素などで読み込みます。<br />
ダウンロードしたファイルに同梱されている画像はCSSファイルと同じ階層においておきます。</p>
<pre><code>&lt;script type="text/javascript" src="farbtastic.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="farbtastic.css" type="text/css" /&gt;</code></pre>
<p>次に、カラーピッカーを付けたいinput要素に任意のIDを付けます。</p>
<pre><code>&lt;input type="text" id="任意のinput要素のid" name="color" value="#123456" /&gt;</code></pre>
<p>次に、カラーピッカーの配置用に空のdiv要素を配置しておきます。div要素には任意のid属性を付けておきます。</p>
<pre><code>&lt;div id="任意のdiv要素のid"&gt;&lt;/div&gt;</code></pre>
<p>最後にhead要素内などで、Farbtasticの利用を宣言します。</p>
<pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
    $('#任意のdiv要素のid').farbtastic('#任意のdiv要素のid');
  });
&lt;/script&gt;</code></pre>
<p><a href="http://javascript.webcreativepark.net/sample/Farbtastic/">サンプル</a></p>
<p>設置自体は非常に簡単なのですが、結構幅を取りますので、利用する場合は適度な領域が必要です。</p>
]]></content:encoded>
			<wfw:commentRss>http://javascript.webcreativepark.net/library/farbtastic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

