<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Director&#039;s Cut - art project team Blog -</title>
	<atom:link href="http://blog.art-p.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.art-p.com</link>
	<description>ウェブディレクターの技術的な備忘録</description>
	<lastBuildDate>Fri, 16 Dec 2011 10:40:42 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/feed/" />
		<item>
		<title>PHPでJSON形式データを作る方法</title>
		<link>http://blog.art-p.com/php/php%e3%81%a7json%e5%bd%a2%e5%bc%8f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%9c%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.art-p.com/php/php%e3%81%a7json%e5%bd%a2%e5%bc%8f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%9c%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 10:39:24 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[プログラム]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=697</guid>
		<description><![CDATA[ワードプレスでajaxでデータを扱う必要があり、どうにかしてphpで取得したデータをjson形式にできないかを模索していた所、json_encode()という関数があるということを知ったのでやってみた。 まず、データを取 [...]]]></description>
			<content:encoded><![CDATA[<p>ワードプレスでajaxでデータを扱う必要があり、どうにかしてphpで取得したデータをjson形式にできないかを模索していた所、json_encode()という関数があるということを知ったのでやってみた。</p>
<p><span id="more-697"></span><br />
まず、データを取得するためのファイルを作ります(仮にdata.php)。<br />
ファイルの中のスクリプトは下記のような感じ</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #009933; font-style: italic;">/** ここにデータ取得処理を書く **/</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$json</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/json_encode"><span style="color: #990000;">json_encode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Type:application/x-javascript;charset=utf-8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$json</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>データ処理を除けばこれだけです。<br />
これをjQueryの$.ajax関数などを使って呼び出して使えばjson形式でデータが返ってきます。<br />
jQueryで設定したパラメータを受け取る場合は$_GET['xxx']や$_POST['xxx']で取得すればOKです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/php/php%e3%81%a7json%e5%bd%a2%e5%bc%8f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%9c%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/php/php%e3%81%a7json%e5%bd%a2%e5%bc%8f%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%9c%e3%82%8b%e6%96%b9%e6%b3%95/" />
	</item>
		<item>
		<title>フェスティバ!!のスマートフォン対応しました</title>
		<link>http://blog.art-p.com/%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3/%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90%e3%81%ae%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%83%95%e3%82%a9%e3%83%b3%e5%af%be%e5%bf%9c%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/</link>
		<comments>http://blog.art-p.com/%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3/%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90%e3%81%ae%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%83%95%e3%82%a9%e3%83%b3%e5%af%be%e5%bf%9c%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 14:34:47 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[CM]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[フェスティバ!!]]></category>
		<category><![CDATA[フレームワーク]]></category>
		<category><![CDATA[プログラム]]></category>
		<category><![CDATA[独自サービス]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ZendFramework]]></category>
		<category><![CDATA[フェスティバ]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=692</guid>
		<description><![CDATA[現在運営している「フェスティバ!!」のスマートフォン版をリリースしました。 まだ、一部しか対応してませんが、順次対応していく予定です。 スマホ版の最大の特徴は、現在地からイベント開催地までのルートを表示することが出来ます [...]]]></description>
			<content:encoded><![CDATA[<p>現在運営している「フェスティバ!!」のスマートフォン版をリリースしました。<br />
まだ、一部しか対応してませんが、順次対応していく予定です。</p>
<p>スマホ版の最大の特徴は、現在地からイベント開催地までのルートを表示することが出来ます。<br />
是非、利用してみてください!!</p>
<p>URL：<a title="フェスティバ!! スマートフォン版" href="http://sp.festiva.biz/" target="_blank">http://sp.festiva.biz/</a></p>
<p style="text-align: center;"><img src="http://blog.art-p.com/wp-content/uploads/2011/07/top_sp.png" alt="フェスティバ!! スマートフォン版リリース" title="top_sp" width="657" height="300" class="size-full wp-image-693 aligncenter" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3/%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90%e3%81%ae%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%83%95%e3%82%a9%e3%83%b3%e5%af%be%e5%bf%9c%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3/%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90%e3%81%ae%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%83%95%e3%82%a9%e3%83%b3%e5%af%be%e5%bf%9c%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/" />
	</item>
		<item>
		<title>[ZendFramework]URLを実際のものとは違うカタチで表示する方法</title>
		<link>http://blog.art-p.com/php/zendframeworkurl%e3%82%92%e5%ae%9f%e9%9a%9b%e3%81%ae%e3%82%82%e3%81%ae%e3%81%a8%e3%81%af%e9%81%95%e3%81%86%e3%82%ab%e3%82%bf%e3%83%81%e3%81%a7%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.art-p.com/php/zendframeworkurl%e3%82%92%e5%ae%9f%e9%9a%9b%e3%81%ae%e3%82%82%e3%81%ae%e3%81%a8%e3%81%af%e9%81%95%e3%81%86%e3%82%ab%e3%82%bf%e3%83%81%e3%81%a7%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 11:21:29 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[フェスティバ!!]]></category>
		<category><![CDATA[フレームワーク]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[ZendFramework]]></category>
		<category><![CDATA[フェスティバ]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=688</guid>
		<description><![CDATA[フェスティバ!!でも使ってますが、本来はhttp://hogehoge.jp/user?id=1のようなアドレスをtwitterなどのようにhttp://hogehoge.jp/!/usernameというようなアドレスで [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.festiva.biz/" target="_blank">フェスティバ!!</a>でも使ってますが、本来はhttp://hogehoge.jp/user?id=1のようなアドレスをtwitterなどのようにhttp://hogehoge.jp/!/usernameというようなアドレスで表示させる方法。</p>
<p>※ZenfFrameworkでの方法<br />
<span id="more-688"></span><br />
まず、public/index.phpに独自ルートの構築をします。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">//独自ルート用のコンポーネント呼び出し</span><br />
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Zend/Controller/front.php'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Zend/Controller/Router/Route.php'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//独自ルートの構築</span><br />
<span style="color: #000088;">$front</span> <span style="color: #339933;">=</span> Zend_Controller_Front<span style="color: #339933;">::</span><span style="color: #004000;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$router</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$front</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRouter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$route</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Controller_Router_Route<span style="color: #009900;">&#40;</span><br />
&nbsp; <span style="color: #0000ff;">'!/:username'</span><span style="color: #339933;">,</span><br />
&nbsp; <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'controller'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'action'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'index'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'username'</span><span style="color: #339933;">=&gt;</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//独自ルートをルータに定義</span><br />
<span style="color: #000088;">$router</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addRoute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$route</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>手順としては、独自ルートのコンポーネントを呼び出し、<br />
どこのコントローラーとどこのアクションをどんなアドレスに変更するかを設定し、<br />
実際に反映できるように定義すればOK</p>
<p> &#8216;username&#8217;=>null　はデフォルトの値を設定する場合に記述。<br />
デフォルトがない場合はnullにしておく。</p>
<p>上記の場合、userというコントロールのindexアクションのルートを変更しています。<br />
その際のパラメータ名は[username]と設定しています。<br />
http://hogehoge.jp/user?id=1 というアドレスを http://hogehoge.jp/!/abcd というURLで表示できます。<br />
※abcdがusernameパラメータです。</p>
<p>URLルートを変更する場合 http://hogehoge.jp/xxxxx というのは避け、<br />
http://hogehoge.jp/abc/xxxx のように必ず擬似ディレクトリを置くようにしてください。<br />
その際に、絶対に他のコンテンツと同じものにはしないでください。</p>
<p>値を取得する際は下記で取得できます。<br />
上記を例に本来のコントローラー(UserController.php)のindexActionで値を取得</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> indexAction<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000088;">$hogehoge</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">username</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>余談ですが、「!」は使えましたがtwitterのように「#」は使えませんでした。<br />
制限があるのだろうか？？</p>
<p>ちなみに、<a href="http://www.festiva.biz/" target="_blank">フェスティバ!!</a>の場合は<a href="http://www.festiva.biz/!/artprojectteam" target="_blank">http://www.festiva.biz/!/artprojectteam</a>というように使っています。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/php/zendframeworkurl%e3%82%92%e5%ae%9f%e9%9a%9b%e3%81%ae%e3%82%82%e3%81%ae%e3%81%a8%e3%81%af%e9%81%95%e3%81%86%e3%82%ab%e3%82%bf%e3%83%81%e3%81%a7%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/php/zendframeworkurl%e3%82%92%e5%ae%9f%e9%9a%9b%e3%81%ae%e3%82%82%e3%81%ae%e3%81%a8%e3%81%af%e9%81%95%e3%81%86%e3%82%ab%e3%82%bf%e3%83%81%e3%81%a7%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/" />
	</item>
		<item>
		<title>東日本大震災復興支援サイトをリリースしました</title>
		<link>http://blog.art-p.com/cm/%e6%9d%b1%e6%97%a5%e6%9c%ac%e5%a4%a7%e9%9c%87%e7%81%bd%e5%be%a9%e8%88%88%e6%94%af%e6%8f%b4%e3%82%b5%e3%82%a4%e3%83%88/</link>
		<comments>http://blog.art-p.com/cm/%e6%9d%b1%e6%97%a5%e6%9c%ac%e5%a4%a7%e9%9c%87%e7%81%bd%e5%be%a9%e8%88%88%e6%94%af%e6%8f%b4%e3%82%b5%e3%82%a4%e3%83%88/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 07:54:37 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[CM]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=674</guid>
		<description><![CDATA[先日、東日本大震災の復興支援としてart project teamと株式会社ディー・エム・ピーの共同運営で「たがやせ-復興支援プロジェクト-」というサイトをリリースしました。 炊き出し情報やボランティア情報、募金活動など [...]]]></description>
			<content:encoded><![CDATA[<p>先日、東日本大震災の復興支援として<a href="http://art-p.com/" target="_blank">art project team</a>と<a href="http://www.dmp.co.jp/" target="_blank">株式会社ディー・エム・ピー</a>の共同運営で「<a href="http://tagayase.festiva.biz/" target="_blank">たがやせ-復興支援プロジェクト-</a>」というサイトをリリースしました。</p>
<p><img src="http://blog.art-p.com/wp-content/uploads/2011/04/a2ef51331331424befd4f42c40dda01e.jpg" alt="たがやせ -復興支援プロジェクト-" title="tagayase" width="460" height="252" class="alignnone size-full wp-image-675" /></p>
<p>炊き出し情報やボランティア情報、募金活動など復興支援に関する情報であればなんでも登録できます。<br />
被災地のでの活動だけでなく、遠方での活動でも被災地の復興支援に繋がるのであれば、問題ありません。<br />
当サイトを通じて、少しでも復興支援に役立てばと思っております。</p>
<p>もし、なんらかの事情で情報登録が難しいなどありましたら、連絡していただければ私の方で登録いたします。<br />
その際は、登録してほしい情報やURLをtagayase@festiva.bizまでご連絡ください。<a href="http://tagayase.festiva.biz/" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/cm/%e6%9d%b1%e6%97%a5%e6%9c%ac%e5%a4%a7%e9%9c%87%e7%81%bd%e5%be%a9%e8%88%88%e6%94%af%e6%8f%b4%e3%82%b5%e3%82%a4%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/cm/%e6%9d%b1%e6%97%a5%e6%9c%ac%e5%a4%a7%e9%9c%87%e7%81%bd%e5%be%a9%e8%88%88%e6%94%af%e6%8f%b4%e3%82%b5%e3%82%a4%e3%83%88/" />
	</item>
		<item>
		<title>twitterAPIを利用して複数のタイムラインを表示</title>
		<link>http://blog.art-p.com/%e3%83%a1%e3%83%a2/twitterapi%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%92%e8%a1%a8%e7%a4%ba/</link>
		<comments>http://blog.art-p.com/%e3%83%a1%e3%83%a2/twitterapi%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%92%e8%a1%a8%e7%a4%ba/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 09:12:24 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[メモ]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=668</guid>
		<description><![CDATA[ホームページなどにtwitterのタイムラインを表示するさい、大抵は一つだけのJQueryプラグインですが、複数のタイムラインを表示することができます。 一つはA jQuery TwitterTickerというプラグイン [...]]]></description>
			<content:encoded><![CDATA[<p>ホームページなどにtwitterのタイムラインを表示するさい、大抵は一つだけのJQueryプラグインですが、複数のタイムラインを表示することができます。</p>
<p>一つは<a title="twitterで複数のユーザーを表示できる" href="http://tutorialzine.com/2009/10/jquery-twitter-ticker/" target="_blank">A jQuery TwitterTicker</a>というプラグインを利用すればできます。<br />
ただし、これは一つのボックスに複数のユーザーのつぶやきを表示させるというもの。</p>
<p>もし、上記のようなものではなく、ユーザーごとのタイムラインボックスが複数欲しいという場合の対処法。</p>
<p><span id="more-668"></span><br />
<a title="twitterで複数のユーザーを表示できる" href="http://tutorialzine.com/2009/10/jquery-twitter-ticker/" target="_blank">A jQuery TwitterTicker</a>を参考にいじりました。<br />
といっても、<a href="http://adomas.org/javascript-mouse-wheel/">jquery.mousewheel.js</a>、<a href="http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html">jScrollPane.js</a>があれば別に上記のものを使わなくてもいいのですが。。</p>
<p>コードは下記のような感じ。</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> tweetUsers <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'art project team'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'artprojectteam'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'http://art-p.com/'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'フェスティバ!!'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'festiva55'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'http://www.festiva.biz/'</span><span style="color: #009900;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#twitterArray'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>tweetUsers.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#twitterArray'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;div id=&quot;tweet-'</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; class=&quot;tweetArea&quot;&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;div class=&quot;tweetIcon&quot;&gt;&lt;img src=&quot;common/images/twitter_icon/'</span><span style="color: #339933;">+</span>tweetUsers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'.gif&quot; width=&quot;32&quot; height=&quot;32&quot; alt=&quot;'</span><span style="color: #339933;">+</span>tweetUsers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot;&gt;&lt;/div&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;div class=&quot;tweetUser&quot;&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;h3&gt;&lt;a href=&quot;'</span><span style="color: #339933;">+</span>tweetUsers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; target=&quot;_blank&quot;&gt;'</span><span style="color: #339933;">+</span>tweetUsers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/a&gt;&lt;/h3&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;h4&gt;&lt;a href=&quot;http://twitter.com/'</span><span style="color: #339933;">+</span>tweetUsers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; target=&quot;_blank&quot;&gt;@'</span><span style="color: #339933;">+</span>tweetUsers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/a&gt;&lt;/h4&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/div&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;div class=&quot;tweetConpane&quot;&gt;&lt;div class=&quot;tweetBox&quot;&gt;&lt;ol&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/div&gt;'</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; getTweet<span style="color: #009900;">&#40;</span>tweetUsers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #006600; font-style: italic;">/** ツイートを取得 **/</span><br />
<span style="color: #003366; font-weight: bold;">function</span> getTweet<span style="color: #009900;">&#40;</span>account<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; $.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://search.twitter.com/search.json?q=from:&quot;</span><span style="color: #339933;">+</span>account<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;rpp=50&amp;callback=?&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> j<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> j<span style="color: #339933;">&lt;</span>data.<span style="color: #660066;">results</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> data.<span style="color: #660066;">results</span><span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">text</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text <span style="color: #339933;">=</span> text.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/(s?https?:\/\/[-_.!~*'()a-zA-Z0-9;\/?:@&amp;=+$,%#]+)/gi</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'&lt;a href=&quot;$1&quot; target=&quot;_blank&quot;&gt;$1&lt;/a&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text <span style="color: #339933;">=</span> text.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/#(\w+)/gi</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'&lt;a href=&quot;http://twitter.com/search?q=%23$1&quot; target=&quot;_blank&quot;&gt;#$1&lt;/a&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text <span style="color: #339933;">=</span> text.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/@(\w+)/gi</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'&lt;a href=&quot;http://twitter.com/$1&quot; target=&quot;_blank&quot;&gt;@$1&lt;/a&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#tweet-'</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">' .tweetBox ol'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'&lt;li&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span>text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;br&gt;&lt;span class=&quot;date&quot;&gt;'</span><span style="color: #339933;">+</span>data.<span style="color: #660066;">results</span><span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">created_at</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/span&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/li&gt;'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#tweet-'</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">' .tweetBox'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jScrollPane</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>JSON形式で取得したデータをループさせてid=&#8221;twitterArray&#8221;の中に表示するというものです。<br />
あと、リンク(http://)がある場合は自動的にリンクタグにするという処理も付け加えています。</p>
<p>q=from:xxx<br />
の場合はアカウント(@xxx)を取得するようになります。<br />
q=xxx<br />
の場合はxxxという文字列を含むものを取得するということになります。<br />
この辺のオプションは<a href="http://d.hatena.ne.jp/favril/20090327/1238138002" target="_blank">ここ</a>とか<a href="http://wiki.tmd45.in/wiki.cgi?page=Twitter%A5%C9%A5%AD%A5%E5%A5%E1%A5%F3%A5%C8%2F%B8%A1%BA%F7%B4%D8%CF%A2%A4%CEAPI" target="_blank">ここ</a>を参考にするとよいです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/%e3%83%a1%e3%83%a2/twitterapi%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%92%e8%a1%a8%e7%a4%ba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/%e3%83%a1%e3%83%a2/twitterapi%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%a9%e3%82%a4%e3%83%b3%e3%82%92%e8%a1%a8%e7%a4%ba/" />
	</item>
		<item>
		<title>ブログをリニューアルしました。</title>
		<link>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%96%e3%83%ad%e3%82%b0%e3%82%92%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/</link>
		<comments>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%96%e3%83%ad%e3%82%b0%e3%82%92%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 12:51:28 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[プログラム]]></category>
		<category><![CDATA[ワードプレス]]></category>
		<category><![CDATA[独自サービス]]></category>
		<category><![CDATA[雑記]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=666</guid>
		<description><![CDATA[最近は宣伝ばかりの当ブログですみません。 今回も宣伝です。 ご覧の通りブログをリニューアルしました。 今回はリキッドレイアウトという手法を使って作成しています。 ブラウザの横幅によってサイズが変わります(最小サイズは決ま [...]]]></description>
			<content:encoded><![CDATA[<p>最近は宣伝ばかりの当ブログですみません。<br />
今回も宣伝です。</p>
<p>ご覧の通りブログをリニューアルしました。</p>
<p>今回はリキッドレイアウトという手法を使って作成しています。<br />
ブラウザの横幅によってサイズが変わります(最小サイズは決まってますよ)。</p>
<p>最近の流行に乗っかったといえばまぁ、間違いではないですｗ<br />
個人的にはブログやECサイトはリキッドレイアウトに即していると思いますが、コーポレートサイトには合わないと思っています。<br />
これは単純に1ページあたりの情報量の違いがあるからだと思います。</p>
<p>まぁ、そんなこんなで日々勉強の毎日です。<br />
本業ではディレクター一色なので、なかなか制作をする時間はありませんが、いざ「やりたい！｣という時に必要な技術を揮えるように努力していかねばなりませんですな。<br />
まだまだ日進月歩の業界なのでアンテナは常に張り巡らせないと！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%96%e3%83%ad%e3%82%b0%e3%82%92%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%96%e3%83%ad%e3%82%b0%e3%82%92%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/" />
	</item>
		<item>
		<title>ホームページリニューアルしました</title>
		<link>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/</link>
		<comments>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 13:17:43 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[CM]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[ホームページ制作]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[プログラム]]></category>
		<category><![CDATA[制作]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=659</guid>
		<description><![CDATA[つい先日、フェスティバ!!をリリースしましたが、それに伴ってホームページもリニューアルしました。 本当はフェスティバ!!リリースと同時にしたかったけど、思い立ったのが1月下旬だったので、残念ながら間に合わず。。。 結構突 [...]]]></description>
			<content:encoded><![CDATA[<p>つい先日、<a href="http://www.festiva.biz/" target="_blank">フェスティバ!!</a>をリリースしましたが、それに伴って<a href="http://art-p.com/" target="_blank">ホームページ</a>もリニューアルしました。<br />
本当はフェスティバ!!リリースと同時にしたかったけど、思い立ったのが1月下旬だったので、残念ながら間に合わず。。。<br />
結構突貫で制作したので行き当たりばったりで制作してます(前の記事にえらそうなことを書いてるにもかかわらず・・・)。</p>
<p>ともあれ、新ホームページもよろしくお願いいたします。<br />
<img src="http://blog.art-p.com/wp-content/uploads/2011/02/art-p.jpg" title="art-p" width="394" height="422" class="alignnone size-full wp-image-660" /></p>
<p>さて、次はこのブログのリニューアルもしなくては…。<br />
1日で作ったデザインなのでかなり欠陥があるので、その辺なんとかしなければ。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%aa%e3%83%8b%e3%83%a5%e3%83%bc%e3%82%a2%e3%83%ab%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/" />
	</item>
		<item>
		<title>ウェブサイトを制作する前に必要な事</title>
		<link>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%82%a6%e3%82%a7%e3%83%96%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e5%88%b6%e4%bd%9c%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%e5%bf%85%e8%a6%81%e3%81%aa%e4%ba%8b/</link>
		<comments>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%82%a6%e3%82%a7%e3%83%96%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e5%88%b6%e4%bd%9c%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%e5%bf%85%e8%a6%81%e3%81%aa%e4%ba%8b/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 11:14:05 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[ホームページ制作]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[制作]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=653</guid>
		<description><![CDATA[ウェブサイトを作る上で、「ビジョン」がいかに大切なのかを改めて実感しています。 そのウェブサイトは何のために作成しましたか？あるいは作成しますか？ 多くの人や企業の担当者さんと話をしましたが、その「ビジョン」が明確になっ [...]]]></description>
			<content:encoded><![CDATA[<p>ウェブサイトを作る上で、「ビジョン」がいかに大切なのかを改めて実感しています。<br />
そのウェブサイトは何のために作成しましたか？あるいは作成しますか？<br />
多くの人や企業の担当者さんと話をしましたが、その「ビジョン」が明確になっていない所が多かったです。<br />
<span id="more-653"></span>当然、「ビジョン」というのは、サイトの色合いとかイメージとかそういうものではありません。<br />
そのウェブサイトのゴールです。<br />
例えば、問い合わせをして欲しいとか、商品を買ってほしいとか…いろいろあると思いますが、そのウェブサイトで実現したいことはなんなのか？ということを明確にします。</p>
<p>ビジョンがないと、ウェブサイトを制作しても何を訴えたいのかさっぱりわからないということも多々あります。</p>
<p>これはリニューアル時にも当てはまります。<br />
なぜ、リニューアルをするのか？<br />
単に見栄えの問題なのか、コンテンツの問題なのか？構造の問題なのか？<br />
アクセスが少ないからリニューアルしてアクセス増加を見込みたいという相談も受けますが、コンテンツの中身がほぼ一緒なら外側を変えても大した効果は見込めません。</p>
<p>新規制作にしろ、リニューアルにしろ、サイトそのものの役割となるビジョンをもって制作していくことが重要です。</p>
<p>ビジョンが出来たら、次はターゲット層を決めます。<br />
ウェブサイトはCMと同じように不特定多数に見てもらうことが可能です。<br />
ただ、ウェブのいいところは狙ったターゲット層にピンポイントでアクセスしてもらえることも可能です。<br />
それが、検索ワードだったりネット広告だったり…</p>
<p>アクセスはあるけど成果に結びついていない場合、大抵がターゲット層からのアクセスが見込めていないか、ターゲット層の興味を引けてない事が多いです。</p>
<p>結局のところはターゲット層に対するアピールがズレているのです。<br />
欲しい情報がないとか…ね。</p>
<p>ターゲット層を決めたら、次にターゲット層が欲しがる情報をピックアップしていきます。<br />
これがコンテンツです。<br />
そして、そのコンテンツからビジョンを達成するための導線を考える必要があります。</p>
<p>どういうルートでサイト内をアクセスしてもらいたいのか？<br />
そのためにはどんな入り口が必要なのか？出口はどうするか？<br />
その結果、ビジョンは達成できるのか？</p>
<p>これらを考えながらコンテンツをカテゴライズしつつ、サイトマップを作成します。</p>
<p>そして、そこから情報配置やデザインなどを考えるわけです。<br />
デザインだー、最適化だーとかいう前に大きなウェブ戦略が必要というコラムでした。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%82%a6%e3%82%a7%e3%83%96%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e5%88%b6%e4%bd%9c%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%e5%bf%85%e8%a6%81%e3%81%aa%e4%ba%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/%e9%9b%91%e8%a8%98/%e3%82%a6%e3%82%a7%e3%83%96%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e5%88%b6%e4%bd%9c%e3%81%99%e3%82%8b%e5%89%8d%e3%81%ab%e5%bf%85%e8%a6%81%e3%81%aa%e4%ba%8b/" />
	</item>
		<item>
		<title>イベントの宣伝・検索サイト フェスティバ!! リリースしました</title>
		<link>http://blog.art-p.com/cm/%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%ae%e5%ae%a3%e4%bc%9d%e3%83%bb%e6%a4%9c%e7%b4%a2%e3%82%b5%e3%82%a4%e3%83%88-%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90-%e3%83%aa%e3%83%aa/</link>
		<comments>http://blog.art-p.com/cm/%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%ae%e5%ae%a3%e4%bc%9d%e3%83%bb%e6%a4%9c%e7%b4%a2%e3%82%b5%e3%82%a4%e3%83%88-%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90-%e3%83%aa%e3%83%aa/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 15:06:03 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[CM]]></category>
		<category><![CDATA[フェスティバ!!]]></category>
		<category><![CDATA[独自サービス]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ZendFramework]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=641</guid>
		<description><![CDATA[本日、イベント情報の宣伝・検索サイト「フェスティバ!!」をリリースしました。 キャッチの通り、イベント、セミナー、ライブなど各種イベントの宣伝ができるサイトです。 イベントを宣伝したいという主催者様!!　いろんな宣伝方法 [...]]]></description>
			<content:encoded><![CDATA[<p>本日、イベント情報の宣伝・検索サイト「<a title="イベント情報の宣伝・検索ができるポータルサイト" href="http://www.festiva.biz/" target="_blank">フェスティバ!!</a>」をリリースしました。<br />
キャッチの通り、イベント、セミナー、ライブなど各種イベントの宣伝ができるサイトです。<br />
イベントを宣伝したいという主催者様!!　いろんな宣伝方法がありますが、その中に当サイトも宣伝の一環として使用してみてください。<br />
<a title="イベント情報の宣伝・検索ができるポータルサイト" href="http://www.festiva.biz/" target="_blank"><img src="http://blog.art-p.com/wp-content/uploads/2011/02/festiva.png" alt="フェスティバ!! 始まりました" title="イベント情報の宣伝・検索サイト フェスティバ!!" width="459" height="231" class="alignnone size-full wp-image-642" /></a></p>
<p>このサイトはZendFrameworkを使用して制作。<br />
CSS3の使用もしていますので、FirefoxやGoogle Chromeで閲覧した時と、IEで閲覧した時では見え方が違います。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/cm/%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%ae%e5%ae%a3%e4%bc%9d%e3%83%bb%e6%a4%9c%e7%b4%a2%e3%82%b5%e3%82%a4%e3%83%88-%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90-%e3%83%aa%e3%83%aa/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/cm/%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%ae%e5%ae%a3%e4%bc%9d%e3%83%bb%e6%a4%9c%e7%b4%a2%e3%82%b5%e3%82%a4%e3%83%88-%e3%83%95%e3%82%a7%e3%82%b9%e3%83%86%e3%82%a3%e3%83%90-%e3%83%aa%e3%83%aa/" />
	</item>
		<item>
		<title>alt属性とtitle属性</title>
		<link>http://blog.art-p.com/html/alt%e5%b1%9e%e6%80%a7%e3%81%a8title%e5%b1%9e%e6%80%a7/</link>
		<comments>http://blog.art-p.com/html/alt%e5%b1%9e%e6%80%a7%e3%81%a8title%e5%b1%9e%e6%80%a7/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 03:59:14 +0000</pubDate>
		<dc:creator>art project team</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://blog.art-p.com/?p=629</guid>
		<description><![CDATA[画像を表示する際にaltやtitle属性を表記ですますが、この違いについて。 alt属性 alt属性というのは、代替文字。つまり、代わりに表示する文字の事をさします。 では、何の代わりに表示するのかというと、「画像が表示 [...]]]></description>
			<content:encoded><![CDATA[<p>画像を表示する際にaltやtitle属性を表記ですますが、この違いについて。</p>
<ul>
<li><span style="color: #008000;"><span style="font-size: medium;"><strong>alt属性</strong></span></span><br />
alt属性というのは、代替文字。つまり、代わりに表示する文字の事をさします。<br />
では、何の代わりに表示するのかというと、「画像が表示されないときに代わりに表示する文字」となります。<br />
なので、画像の中の文字とaltのテキストが違うというのはあってはいけません。<br />
<img src="http://blog.art-p.com/wp-content/uploads/2010/06/bottun.jpg" alt="画像をダウンロード" width="111" height="34" class="alignnone size-full wp-image-518" /><br />
上のような画像だと&lt;img src=&#8221;xxx&#8221; alt=&#8221;画像をダウンロード&#8221; /&gt;と記述します。<br />
<strong>alt属性は必須</strong>なので、必ずimgタグには書くようにしましょう。<br />
もし、画像に何の意味もない場合(装飾など)は基本はCSSで指定し、それが無理ならばalt=&#8221;"とalt属性の中身を空にすれば問題ありません。</p>
</li>
<li><span style="color: #008000;"><span style="font-size: medium;"><strong>title属性</strong></span></span><br />
title属性とは、その要素の中身を説明します。<br />
つまり、title属性というのは画像以外にも使用できます。例えばリンクなど。<br />
title属性はポインタが画像やリンクに乗った際に表示されるツールチップの事です。<br />
下記の画像にポインタを乗せてください。<br />
<img src="http://blog.art-p.com/wp-content/uploads/2010/06/bottun.jpg" alt="画像をダウンロード" title="○日限定!超お得画像です" width="111" height="34" class="alignnone size-full wp-image-518" /><br />
「○日限定!超お得画像です」と出てきましたか？<br />
これがtitle属性と呼ばれるものです。<br />
画像の中身を説明したり、リンク先の説明をしたりするときに使用します。<br />
ちなみに、必須ではないのであってもなくても大丈夫です。</li>
</ul>
<p>上記のようにaltとtitleは全く別物です。<br />
なので、基本的にはaltとtitleが同じになるということはあり得ません。</p>
<p>制作をする際には気を付けましょう。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.art-p.com/html/alt%e5%b1%9e%e6%80%a7%e3%81%a8title%e5%b1%9e%e6%80%a7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.art-p.com/html/alt%e5%b1%9e%e6%80%a7%e3%81%a8title%e5%b1%9e%e6%80%a7/" />
	</item>
	</channel>
</rss>

