<?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>WEBCreate practice!! &#187; javaScript</title>
	<atom:link href="http://study.guidebook.jp/web_create/?feed=rss2&#038;tag=javascript" rel="self" type="application/rss+xml" />
	<link>http://study.guidebook.jp/web_create</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 22 May 2013 02:26:09 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.guidebook.jp/web_create/?feed=rss2&amp;tag=javascript" />
		<item>
		<title>シンプルなフォトギャラリーが作れる「thumb_gallery.js」</title>
		<link>http://study.guidebook.jp/web_create/?p=327</link>
		<comments>http://study.guidebook.jp/web_create/?p=327#comments</comments>
		<pubDate>Wed, 15 May 2013 09:09:56 +0000</pubDate>
		<dc:creator>masayoshi</dc:creator>
				<category><![CDATA[javaScript]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://study.guidebook.jp/web_create/?p=327</guid>
		<description><![CDATA[シンプルなフォトギャラリーを設置することが出来る、thumb_gallery.jsをご紹介します。何を隠そうこのスクリプトは生徒さんの作品になります!!。僅か半年足らずで未経験からここまで登り詰めるとは・・・。K野さん脱 [...]]]></description>
				<content:encoded><![CDATA[<p>シンプルなフォトギャラリーを設置することが出来る、<span style="color: #ff0000;"><strong>thumb_gallery.js</strong></span>をご紹介します。何を隠そうこのスクリプトは生徒さんの作品になります!!。僅か半年足らずで未経験からここまで登り詰めるとは・・・。K野さん脱帽です!!参りました!!(笑)。<span id="more-327"></span><br />
&nbsp;<br />
まだ、K野さん自身のサイトが無いため、リンクが張れないですがK野さんのサイトが完成次第リンクを張る予定です。<br />
&nbsp;<br />
<a href="http://study.guidebook.jp/zip_files/thumbnail_gallery/" target="_blank">とりあえずの動作サンプルはこちら!!</a><br />
&nbsp;<br />
ではではさっそく使い方の説明をしていこうと思います。<br />
&nbsp;</p>
<h3><span style="color: #ff0000;">ファイルのダウンロード</span></h3>
<p>&nbsp;<br />
<a href="http://study.guidebook.jp/zip_files/thumbnail_gallery/thumbnail_gallery.zip">こちらからファイル一式ダウンロードしてください。</a><br />
&nbsp;<br />
ダウンロードしてzipファイルを解凍したら自分のサイトの中に下記のソースコードを記述。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/thumb_gallery.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;css/thumb_gallery.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; 
</pre>
<p>&nbsp;</p>
<h3><span style="color: #ff0000;">フォトギャラリー部分のHTMLマークアップ</span></h3>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;display_image&quot;&gt;
 &lt;ul&gt;
  &lt;li&gt;&lt;img alt=&quot;画像01&quot; src=&quot;画像ファイルのパス&quot; width=&quot;画像幅※必須&quot; height=&quot;画像高さ※必須&quot;&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img alt=&quot;画像02&quot; src=&quot;画像ファイルのパス&quot; width=&quot;画像幅※必須&quot; height=&quot;画像高さ※必須&quot;&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img alt=&quot;画像03&quot; src=&quot;画像ファイルのパス&quot; width=&quot;画像幅※必須&quot; height=&quot;画像高さ※必須&quot;&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img alt=&quot;画像04&quot; src=&quot;画像ファイルのパス&quot; width=&quot;画像幅※必須&quot; height=&quot;画像高さ※必須&quot;&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img alt=&quot;画像05&quot; src=&quot;画像ファイルのパス&quot; width=&quot;画像幅※必須&quot; height=&quot;画像高さ※必須&quot;&gt;&lt;/li&gt;
 &lt;/ul&gt;
&lt;/div&gt;
</pre>
<p>上記のように、div要素にクラス属性「display_image」を記述し、その中にリスト(※&lt;ul&gt;)で画像を配置します。・・・終了です。なんとシンプルでなんと設定しやすいスクリプトだこと。K野さん恐るべし!!<br />
&nbsp;</p>
<h3><span style="color: #ff0000;">注意点</span></h3>
<p>&nbsp;<br />
※div要素内のリストは、ul要素にのみ対応しています。</p>
<p>※挿入するimg要素のwidth属性とheight属性は必ず指定してください。</p>
<p>※各画像のサイズが統一されていなくても、問題なく動作しますが、各画像の縦横比（特に高さ）は統一されている、もしくは、ある程度近い数値である事を推奨します。<br />
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://study.guidebook.jp/web_create/?feed=rss2&#038;p=327</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.guidebook.jp/web_create/?p=327" />
	</item>
		<item>
		<title>AndroidのハックはjavaScriptでやるのがBESTっぽい!!</title>
		<link>http://study.guidebook.jp/web_create/?p=297</link>
		<comments>http://study.guidebook.jp/web_create/?p=297#comments</comments>
		<pubDate>Tue, 14 May 2013 01:12:46 +0000</pubDate>
		<dc:creator>masayoshi</dc:creator>
				<category><![CDATA[javaScript]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://study.guidebook.jp/web_create/?p=297</guid>
		<description><![CDATA[タイトルに横文字ばかりで若干の「ルー語」っぽさが出てしまってますが、先日スマホサイトの構築をしていた時にiPhoneとAndroidでpaddingの数値に誤差が生じてしまい、色々調べてやってみたんですがCSSハックを使 [...]]]></description>
				<content:encoded><![CDATA[<p>タイトルに横文字ばかりで若干の「ルー語」っぽさが出てしまってますが、先日スマホサイトの構築をしていた時にiPhoneとAndroidでpaddingの数値に誤差が生じてしまい、色々調べてやってみたんですがCSSハックを使うというよりはjavaScriptでユーザーエージェントを取得して読ませるCSSを切り替える。という方法が一番しっくりきましたので、そのやり方+他のAndroidハックの紹介をしようと思います。<span id="more-297"></span><br />
&nbsp;<br />
まずは<a href="https://github.com/rafaelp/css_browser_selector" target="_blank">配布元サイト</a>からファイルをダウンロードしてきてください。解凍後&lt;head&gt;の中に下記のソースコードを記述します。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script src=&quot;css_browser_selector.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>準備はこれでOKです。あとはアンドロイドで別の記述をしたいセレクターに「.android」を頭につけて記述する。</p>
<pre class="brush: css; title: ; notranslate">

p{
  text-align:right;
}

.android p{
  text-align:center;/*for-Android-*/
}
</pre>
<p>上記の様にCSSを書くとAndroidで観たときだけ&lt;p&gt;タグの中の文字列は中央揃え、それ以外のブラウザやデバイスで閲覧すると右揃えとなります。(※コメントアウトは分かりやすい様に付けているだけなので、無くても問題ありません。)</p>
<p>そして、このスクリプトのすごい所はブラウザの違いだけでなくOSの違いも判別出来るところです。例えばmacのIEやウインドウズのサファリなどの指定も出来てしまうんです。下記の例はウインドウズのサファリでの指定例です。</p>
<pre class="brush: css; title: ; notranslate">
.win.safari p{
  text-align:center;/*for-Windows safari-*/
}
</pre>
<h3><span style="color: #ff0000;">対応OS</span></h3>
<p>・win &#8211; Microsoft Windows<br />
・linux &#8211; Linux<br />
・mac &#8211; Mac OS<br />
・ipod &#8211; iPod Touch<br />
・iphone &#8211; iPhone<br />
・android &#8211; Android<br />
&nbsp;</p>
<h3><span style="color: #ff0000;">対応ブラウザ</span></h3>
<p>・ie &#8211; Internet Explorer (All versions)<br />
・ie8 &#8211; Internet Explorer 8.x<br />
・ie7 &#8211; Internet Explorer 7.x<br />
・ie6 &#8211; Internet Explorer 6.x<br />
・gecko &#8211; Mozilla, Firefox (all versions), Camino<br />
・opera &#8211; Opera (All versions)<br />
・safari &#8211; Safari<br />
・chrome &#8211; Google Chrome<br />
&nbsp;<br />
これさえあれば、IEだって怖くない!!(笑)。<br />
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://study.guidebook.jp/web_create/?feed=rss2&#038;p=297</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.guidebook.jp/web_create/?p=297" />
	</item>
	</channel>
</rss>
