<?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>zxcvbnmnbvcxz.com</title>
	<atom:link href="http://zxcvbnmnbvcxz.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://zxcvbnmnbvcxz.com</link>
	<description>We are SUPER C</description>
	<lastBuildDate>Wed, 22 May 2013 04:37:42 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Google Map コントロールナビの位置や航空写真切替の表示非表示の設定変更方法</title>
		<link>http://zxcvbnmnbvcxz.com/google-map-control/</link>
		<comments>http://zxcvbnmnbvcxz.com/google-map-control/#comments</comments>
		<pubDate>Thu, 09 May 2013 08:08:50 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[Google Map]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=9019</guid>
		<description><![CDATA[どうもこんにちは。Toshikuraです。今回のTipsは【Google Map コントロールナビの位置や航空 [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんにちは。Toshikuraです。今回のTipsは【Google Map コントロールナビの位置や航空写真切替の表示非表示の設定変更方法】です。googleMapにはグレースケール化や経路表示等、色々なオプション設定もあります。今回は、中でも比較的頻繁に使用するコントロールナビの位置を制御するオプションの設定の仕方をメモしておきます。</p>
<h4 class="hand1">Googleマップ</h4>
<p>Googleマップを使用するには以下JSを読み込んでおく必要が有りますのでお忘れなく記述してください。</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.googleapis.com/maps/api/js?sensor=false&quot;&gt;&lt;/script&gt;
</pre>
<h4 class="hand2">実装方法</h4>
<p>実装は至って簡単です。googleマップ設置では【mapTypeControlOptions】を指定するかと思います。こちらに以下のような記述をすれば実装完了です。マップ名及び航空写真（マップタイプ）の表示非表示はmapTypeControlで指定しています。</p>
<p><b>・コード</b></p>
<pre class="brush: jscript; title: ; notranslate">
mapTypeControl: true,//falseでマップ名及び航空写真（マップタイプ）の非表示
mapTypeControlOptions: {
    style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
    position: google.maps.ControlPosition.BOTTOM_CENTER //マップタイプの位置
},
panControl: true,//falseで非表示
panControlOptions: {
    position: google.maps.ControlPosition.TOP_RIGHT
},
zoomControl: true,//falseで非表示
zoomControlOptions: {
    style: google.maps.ZoomControlStyle.LARGE,
    position: google.maps.ControlPosition.TOP_RIGHT
},
scaleControl: true,//falseで非表示
scaleControlOptions: {
    position: google.maps.ControlPosition.TOP_LEFT
},
streetViewControl: true,//falseで非表示
streetViewControlOptions: {
    position: google.maps.ControlPosition.TOP_RIGHT
}
</pre>
<p><b>・コントロールの位置に関して</b><br />
コントロールの位置は下記画像をご確認ください。<br />
<img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/05/MAP2.jpg"></p>
<p><b>・コントロールの種類に関して</b><br />
コントロールは4種類あります。それぞれ表示切替が可能です。詳しくはコードをご参照ください。<br />
<img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/05/control.jpg"></p>
<p>以上になります。</p>
<p>参照：<a href="https://developers.google.com/maps/documentation/javascript/controls?hl=ja" target="_blank">Google Maps JavaScript API v3 &#8211; コントロール</a></p>
<p><a class="demo" target="_blank" href="http://zxcvbnmnbvcxz.com/demonstration/maps/v13.html"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/google-map-control/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>簡単！youTubeの動画を全画面背景に配置し自動再生やループ再生を実現する jQuery Plugin【YTPlayer】の実装方法</title>
		<link>http://zxcvbnmnbvcxz.com/jquery-ytplayer/</link>
		<comments>http://zxcvbnmnbvcxz.com/jquery-ytplayer/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 05:01:16 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8731</guid>
		<description><![CDATA[どうもこんにちは。Toshikuraです。今回のTipsは【簡単！youTubeの動画を全画面背景に配置し自動 [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんにちは。Toshikuraです。今回のTipsは【簡単！youTubeの動画を全画面背景に配置し自動再生やループ再生を実現するjQuery Plugin【YTPlayer】の実装方法】です。このところ動画を扱うことが続いたのでメモしておきます。動画を背景にフルスクリーンに指定するプラグインは数々こざいますが、色々試した結果【<a href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-ytplayer/" target="_blank">YTPlayer</a>】という素晴らしいプラグインに落ち着きました。本プラグインは<b>ループや自動再生が容易で且つループのつなぎが自然</b>、さらには特定要素にFIXする事も可能で再生・停止ボタンや再生バー関連のカスタマイズも容易とかなり有用です。もし機会があればお試しください。</p>
<h4 class="hand1">実装方法 > <a href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-ytplayer/" target="_blank">DOWNLOAD</a></h4>
<p>シンプルに実装する場合の例です。この他にも再生/停止の非表示やループを停止に関する設定が行えます。</p>
<p><b>HTML</b></p>
<pre class="brush: xml; title: ; notranslate">
&lt;a id=&quot;bgndVideo&quot; class=&quot;player&quot; data-property=&quot;{videoURL:'ここにYOUTUBEのリンク',containment:'body',autoPlay:true, mute:false}&quot;&gt;&lt;/a&gt;
</pre>
<p><b>JS</b></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;inc/jquery.mb.YTPlayer.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
    $(&quot;.player&quot;).mb_YTPlayer();
});
&lt;/script&gt;
</pre>
<h4 class="hand2">設定について</h4>
<p>自動再生やループの停止、再生ボタンの表示非表示、読み込み完了後の動作等細かい所まで設定が可能です。個人的に今後も使うだろうと思いましたのでJS内を読んでオプションの役割を書き出してみました（若干自信はないですが…）。この他にも様々な設定値が存在するようです。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a id=&quot;bgndVideo&quot; class=&quot;player&quot; 
data-property=&quot;{
    videoURL:'ここにYOUTUBEのリンク',
    containment:'body',
    autoPlay:true,
    mute:false,
    startAt:0,
    opacity:1,
    loop:true,
    showControls:true,
    printUrl:true,
    onReady:function(){console.log('START')}
}&quot;
&gt;&lt;/a&gt;
</pre>
<table cellpadding="0" cellspacing="0" border="0" id="blogtable" width="100%">
<tr>
<td>オプション</td>
<td>設定値</td>
<td>概要</td>
</tr>
<tr>
<td>videoURL</td>
<td>http://www.youtube.com/watch?v=xteoc9zrC2w</td>
<td>YOUTUBEのリンク</td>
</tr>
<tr>
<td>autoPlay</td>
<td>true / false</td>
<td>自動再生の有無</td>
</tr>
<tr>
<td>mute</td>
<td>true / false</td>
<td>音声の有無</td>
</tr>
<tr>
<td>startAt</td>
<td>0 ~ 1</td>
<td>最初の透明度</td>
</tr>
<tr>
<td>opacity</td>
<td>0 ~ 1</td>
<td>ロード後の透明度</td>
</tr>
<tr>
<td>loop</td>
<td>true / false</td>
<td>ループ再生の有無</td>
</tr>
<tr>
<td>showControls</td>
<td>true / false</td>
<td>再生・停止ボタンの表示非表示</td>
</tr>
<tr>
<td>printUrl</td>
<td>true / false</td>
<td>動画ページへのリンク</td>
</tr>
<tr>
<td>onReady</td>
<td>onReady:function(){console.log(&#8216;START&#8217;)}</td>
<td>動画再生準備が完了した段階で何らかの操作を実装</td>
</tr>
</table>
<h4 class="hand3">再生ボタンや再生バーの設定について</h4>
<p>再生ボタンや停止ボタン、再生バーの表示はプラグイン設定時に下記のHTMLが自動的に挿入されますのでカスタマイズを施す場合には下記に対してCSSの記述を行います。再生バーに関しては<b>class=&#8221;mb_YTVPLoaded&#8221;</b>がローディング状況を示し<b>class=&#8221;mb_YTVTime&#8221;</b>が現在の再生時間を示しいるようです。この再生バーは本家youtubeのようにクリックで再生位置の指定が行えます。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;span id=&quot;controlBar_bgndVideo&quot; class=&quot;mb_YTVPBar&quot;&gt;
	&lt;div class=&quot;buttonBar&quot;&gt;
		&lt;span class=&quot;mb_YTVPPlaypause&quot;&gt;PAUSE &lt;/span&gt;
		&lt;span class=&quot;mb_YTVPMuteUnmute&quot;&gt;MUTE &lt;/span&gt;
		&lt;span class=&quot;mb_YTVPTime&quot;&gt;01 : 01 / 02 : 29&lt;/span&gt;
		&lt;span class=&quot;mb_YTVPUrl&quot;&gt;&lt;/span&gt;
		&lt;span class=&quot;mb_OnlyYT&quot;&gt;&lt;/span&gt;
	&lt;/div&gt;
	&lt;div class=&quot;mb_YTVPProgress&quot; style=&quot;position: absolute;&quot;&gt;
		&lt;div class=&quot;mb_YTVPLoaded&quot; style=&quot;position: absolute; left: 0px; width: 10%;&quot;&gt;&lt;/div&gt;
		&lt;div class=&quot;mb_YTVTime&quot; style=&quot;position: absolute; left: 0px; width: 5%;&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;
&lt;/span&gt;
</pre>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/ytp.html" class="demo" target="_blank"></a><br />
以上になります。</p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/jquery-ytplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery 画像を事前読み込みさせておく方法 &#8211; 画像のプリロードの実装方法</title>
		<link>http://zxcvbnmnbvcxz.com/jquery-img-preload/</link>
		<comments>http://zxcvbnmnbvcxz.com/jquery-img-preload/#comments</comments>
		<pubDate>Thu, 11 Apr 2013 12:58:59 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8620</guid>
		<description><![CDATA[どうもこんばんは。Toshikuraです。今回のTipsは【jQuery 画像を事前読み込みさせておく方法 &#038; [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんばんは。Toshikuraです。今回のTipsは【jQuery 画像を事前読み込みさせておく方法 &#8211; 画像のプリロードの実装方法】です。画像の事前読み込みはロードの合計時間を算出したり、マウスホバーでの画像のちらつきを防いだりと色々な場面で活用できるTipsですので覚えておいてもいいかもしれませんね。ちなみにCSSのみでも実装可能です。その場合同一要素内に複数の背景画像を設置したり、imgとして読ませてわざわざどこかに飛ばしたりといういくつかの方法があります。</p>
<h4 class="hand1">jQuery 画像を事前読み込みさせておく方法</h4>
<p>事前にjQueryを読ませる事をお忘れなく。</p>
<pre class="brush: jscript; title: ; notranslate">
jQuery.preloadImages = function(){
    for(var i = 0; i&lt;arguments.length; i++){
        jQuery(&quot;&lt;img&gt;&quot;).attr(&quot;src&quot;, arguments[i]);
    }
};
$.preloadImages(
	&quot;1.gif&quot;,
	&quot;2.gif&quot;,
	...
	&quot;9.gif&quot;,
	&quot;10.gif&quot;
);
</pre>
<p>以上になります。</p>
<p>参照：<a href="http://blog.webcreativepark.net/2009/03/17-161250.html">to-R</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/jquery-img-preload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【12選】GoogleMap グレースケールやカラフルなマップ等、12種類のデザインコード例</title>
		<link>http://zxcvbnmnbvcxz.com/11-googlemap-designs/</link>
		<comments>http://zxcvbnmnbvcxz.com/11-googlemap-designs/#comments</comments>
		<pubDate>Wed, 10 Apr 2013 04:27:53 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Google Map]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8364</guid>
		<description><![CDATA[どうもこんにちは。Toshikuraです。今回のTipsは【Google Map グレースケールやカラフルなマ [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんにちは。Toshikuraです。今回のTipsは【Google Map グレースケールやカラフルなマップ等、12種類のデザインコード例】です。以前、Google Mapのカスタマイズ方法を記事にした事が有りましたが、今回11種類のデザイン&#038;コード例を作成してみましたのでご興味がございましたら遊んでみてください。<b>2013.5.15に一種類追加しました。</b></p>
<h4 class="hand1">Google Mapをカスタマイズする方法</h4>
<p>GoogleMapをカスタマイズするには【<a href="http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html" target="_blank">MapTypeStyler</a>】を使う事になります。詳しくは<a target="_blank" href="http://zxcvbnmnbvcxz.com/google-map-api%E3%80%80%E3%81%9D%E3%81%AE%EF%BC%92%E3%80%80%E3%82%B0%E3%83%BC%E3%82%B0%E3%83%AB%E3%83%9E%E3%83%83%E3%83%97%E3%81%AE%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3%E3%82%92%E5%A4%89%E3%81%88/">以前の記事</a>をご参照下さい。</p>
<h4 class="hand2">オリジナルマーカー（画像）を使用する方法</h4>
<p>以下のコード例では、マーカーアイコンをオリジナル画像に変更する事が可能です。他にもマップの拡大縮小等のナビの表示・非表示等の指定できますので色々触ってみてください。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;body onload=&quot;initialize();&quot;&gt;
	&lt;div id=&quot;map_canvas&quot;&gt;&lt;/div&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.googleapis.com/maps/api/js?sensor=false&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	var map;
	var cent = new google.maps.LatLng(35.666571,139.758024); // 中心の座標
	var MY_MAPTYPE_ID = 'cool';
	function initialize() {

		//***** デザインのカスタマイズ部分 *****//

		var stylez = [
			{
				&quot;stylers&quot;: [
					{ &quot;visibility&quot;: &quot;on&quot; },
					{ &quot;invert_lightness&quot;: true },
					{ &quot;hue&quot;: &quot;#00b2ff&quot; },
					{ &quot;gamma&quot;: 0.65 }
				]
			}
		];

		//***** デザインのカスタマイズ部分 *****//

		var mapOptions = {
			zoom: 10,                  // マップの拡大値
			navigationControl: false,  // マップの拡大縮小等のナビの表示・非表示を行います。
			mapTypeControl: false,     // 右上マップタイプ名を表示し、通常マップとの切替を可能にします。
			scaleControl: false,       // 左下にスケールを表示します。
			center: cent,
			mapTypeControlOptions: {
			mapTypeIds: [google.maps.MapTypeId.ROADMAP, MY_MAPTYPE_ID]
			},
			mapTypeId: MY_MAPTYPE_ID
		};
		map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;),mapOptions);
		var styledMapOptions = {name: &quot;sample&quot;};
		var jayzMapType = new google.maps.StyledMapType(stylez, styledMapOptions);map.mapTypes.set(MY_MAPTYPE_ID, jayzMapType);
		var markerOpts = {
			position: new google.maps.LatLng(35.666571,139.758024), // マーカの座標
			map: map,
			//title: &quot;MAP&quot;,			// マップの名称
			icon:&quot;img/iconmap.png&quot;	// マーカーアイコンを画像に変更
		};
		var marker = new google.maps.Marker(markerOpts);
		var infowin = new google.maps.InfoWindow({content:&quot;text&quot;});
		google.maps.event.addListener(marker, 'click', function(){infowin.open(map, marker);});
	}
	&lt;/script&gt;
&lt;/body&gt;
</pre>
<h4 class="hand3">オリジナルマーカー（画像）を使用する方法</h4>
<p>以下は<a href="http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html" target="_blank">MapTypeStyler</a>を使用して作成したデザイン&#038;コード例です。上記コードの<b>デザインのカスタマイズ部分</b>に記述してください。<br />
　</p>
<h5>ビビットブルー <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v1.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v1.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/1.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;on&quot; },
			{ &quot;invert_lightness&quot;: true },
			{ &quot;hue&quot;: &quot;#00b2ff&quot; },
			{ &quot;gamma&quot;: 0.65 }
		]
	}
];
</pre>
<p>　</p>
<h5>ダークブルー <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v2.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v2.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/2.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;simplified&quot; },
			{ &quot;invert_lightness&quot;: true },
			{ &quot;hue&quot;: &quot;#00e5ff&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;water&quot;,
		&quot;stylers&quot;: [
			{ &quot;color&quot;: &quot;#003d4d&quot; }
		]
	}
];
</pre>
<p>　</p>
<h5>ワインレッド <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v3.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v3.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/3.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;simplified&quot; },
			{ &quot;hue&quot;: &quot;#ff0033&quot; },
			{ &quot;saturation&quot;: -47 },
			{ &quot;gamma&quot;: 0.57 }
		]
	}
];
</pre>
<p>　</p>
<h5>グリーン <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v4.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v4.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/4.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;invert_lightness&quot;: true },
			{ &quot;hue&quot;: &quot;#c3ff00&quot; },
			{ &quot;saturation&quot;: -29 }
		]
	}
];
</pre>
<p>　</p>
<h5>エメラルドグリーン <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v5.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v5.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/5.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;invert_lightness&quot;: true },
			{ &quot;saturation&quot;: 100 },
			{ &quot;lightness&quot;: 1 },
			{ &quot;gamma&quot;: 1.26 },
			{ &quot;hue&quot;: &quot;#00ffcc&quot; }
		]
	}
];
</pre>
<p>　</p>
<h5>イエロー <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v6.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v6.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/6.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;simplified&quot; },
			{ &quot;saturation&quot;: 1 },
			{ &quot;invert_lightness&quot;: true },
			{ &quot;hue&quot;: &quot;#ffdd00&quot; }
		]
	}
];
</pre>
<p>　</p>
<h5>ポイズン <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v7.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v7.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/7.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;simplified&quot; },
			{ &quot;invert_lightness&quot;: true },
			{ &quot;hue&quot;: &quot;#eeff00&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;water&quot;,
		&quot;stylers&quot;: [
			{ &quot;color&quot;: &quot;#519726&quot; }
		]
	}
];
</pre>
<p>　</p>
<h5>グレースケール_v1 <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v8.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v8.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/8.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;invert_lightness&quot;: true },
			{ &quot;saturation&quot;: -100 },
			{ &quot;lightness&quot;: -27 },
			{ &quot;gamma&quot;: 1.11 },
			{ &quot;visibility&quot;: &quot;simplified&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;road&quot;,
		&quot;stylers&quot;: [
			{ &quot;color&quot;: &quot;#000000&quot; }
		]
	}
];

</pre>
<p>　</p>
<h5>グレースケール_v2 <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v9.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v9.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/9.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;saturation&quot;: -100 },
			{ &quot;gamma&quot;: 1.11 },
			{ &quot;visibility&quot;: &quot;simplified&quot; },
			{ &quot;invert_lightness&quot;: true }
		]
		},{
		&quot;featureType&quot;: &quot;landscape&quot;,
		&quot;stylers&quot;: [
			{ &quot;color&quot;: &quot;#000000&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;road&quot;,
		&quot;stylers&quot;: [
			{ &quot;color&quot;: &quot;#000000&quot; },
			{ &quot;lightness&quot;: -100 }
		]
	}
];
</pre>
<p>　</p>
<h5>グレースケール_v3 <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v10.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v10.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/10.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;stylers&quot;: [
			{ &quot;saturation&quot;: -100 },
			{ &quot;gamma&quot;: 1.11 },
			{ &quot;visibility&quot;: &quot;simplified&quot; },
			{ &quot;invert_lightness&quot;: true }
		]
		},{
		&quot;featureType&quot;: &quot;water&quot;,
		&quot;stylers&quot;: [
			{ &quot;color&quot;: &quot;#ffffff&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;road&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;on&quot; },
			{ &quot;color&quot;: &quot;#000000&quot; }
		]
	}
];
</pre>
<p>　</p>
<h5>パープル <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v11.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v11.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/11.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;featureType&quot;: &quot;administrative&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;off&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;landscape&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;off&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;poi&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;off&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;road&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;off&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;transit&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;off&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;water&quot;,
		&quot;elementType&quot;: &quot;labels&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;off&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;landscape&quot;,
		&quot;stylers&quot;: [
			{ &quot;visibility&quot;: &quot;simplified&quot; },
			{ &quot;color&quot;: &quot;#330020&quot; }
		]
		},{
		&quot;featureType&quot;: &quot;water&quot;,
		&quot;stylers&quot;: [
			{ &quot;color&quot;: &quot;#fff4ef&quot; }
		]
	}
];
</pre>
<p>　</p>
<h5>グレースケール <a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v12.html" target="_blank">DEMO</a></h5>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v12.html" target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/gs.jpg"></a></p>
<pre class="brush: jscript; title: ; notranslate">
var stylez = [
	{
		&quot;featureType&quot;: &quot;all&quot;,
		&quot;stylers&quot;: [
			{ &quot;saturation&quot;: -100 }
		]
	}
];
</pre>
<p>以上になります。</p>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/maps/v1.html" target="_blank" class="demo"></a></p>
<style>#postBd .post img {margin:0px 0 -20px 0;box-shadow: none;}#postBd .post h5 {margin: 0px 0 0 0;}</style>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/11-googlemap-designs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery iframeの読み込み完了後のタイミングで処理を実行する方法</title>
		<link>http://zxcvbnmnbvcxz.com/jquery-iframe-loaded/</link>
		<comments>http://zxcvbnmnbvcxz.com/jquery-iframe-loaded/#comments</comments>
		<pubDate>Thu, 04 Apr 2013 16:01:06 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8622</guid>
		<description><![CDATA[どうもこんばんは。Toshikuraです。今回のTipsは【jQuery iframeの読み込み完了後のタイミ [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんばんは。Toshikuraです。今回のTipsは【jQuery iframeの読み込み完了後のタイミングで処理を実行する方法】です。局所的な記事が続いていますが地味に使えるTipsなのでメモしておきます。デモの方を見ていただければざっくりとした使い方が掴めるかと思います。もしよろしければ合わせてご確認ください。<br />
<a class="demo" target="_blank" href="http://zxcvbnmnbvcxz.com/demonstration/load_iframe.html"></a></p>
<h4 class="hand1">iframeの読み込み完了後のタイミング</h4>
<p>読み込みのタイミングで何らかの動作をさせる場合は以下のような記述で実装可能です。<br />
　<br />
<b>HTML</b></p>
<pre class="brush: xml; title: ; notranslate">
&lt;iframe id=&quot;tgt&quot; src=&quot;http:****.com&quot;&gt;&lt;/iframe&gt;
</pre>
<p><b>JS</b></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
	$('#tgt').load(function(){
		console.log('読み込み完了');
	});
});
&lt;/script&gt;
</pre>
<h4 class="hand2">クリック等のタイミングで読み込み</h4>
<p>次の例はクリック等のタイミングでiframeの読み込みを開始させ、且つiframeの読み込みの完了を取得します。<br />
　<br />
<b>JS</b></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
	var url = 'http:****.com';//読み込み先のURL
	$('#loadbtn').click(function(){
		$('#tgt').attr({'src':url});
		$('#tgt').load(function(){
			console.log('読み込み完了');
		});
	});
});
&lt;/script&gt;
</pre>
<h4 class="hand3">クリック等のタイミングで読み込み（デモ）</h4>
<p>今回のデモではこれに加え、ローディングイメージ及びiframe自身の表示・非表示を行っています。<br />
　<br />
<b>CSS</b></p>
<pre class="brush: css; title: ; notranslate">
#tgt{display: none;}
#loading{display: none;}
</pre>
<p><b>HTML</b></p>
<pre class="brush: xml; title: ; notranslate">
&lt;img src=&quot;images/loading.gif&quot; id=&quot;loading&quot;&gt;
&lt;iframe id=&quot;tgt&quot; src=&quot;&quot;&gt;&lt;/iframe&gt;
</pre>
<p><b>JS</b></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
	var url = 'http:****.com';//読み込み先のURL
	$('#loadbtn').click(function(){
		$('#loading').fadeIn(300);
		$('#tgt').attr({'src':url});
		$('#tgt').load(function(){
			$(this).fadeIn(1000);
			$('#loading').fadeOut(300);
		});
	});
});
&lt;/script&gt;
</pre>
<p>　<br />
以上になります。</p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/jquery-iframe-loaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress カスタムフィールドが空だった場合の分岐や複数あった場合の出力、分岐方法</title>
		<link>http://zxcvbnmnbvcxz.com/wp-custum-fields/</link>
		<comments>http://zxcvbnmnbvcxz.com/wp-custum-fields/#comments</comments>
		<pubDate>Wed, 03 Apr 2013 11:31:39 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8573</guid>
		<description><![CDATA[どうもこんばんは。Toshikuraです。この時期は忙しく久々の更新になってしまいました。今回のTipsは【W [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんばんは。Toshikuraです。この時期は忙しく久々の更新になってしまいました。今回のTipsは【Wordpress カスタムフィールドが空だった場合の分岐や複数あった場合の出力や分岐方法】です。あまり使う事もないTipsですが…一応備忘録の為に書いておきます。</p>
<style>#postBd .post img {margin: 0px 0 0;}</style>
<h4 class="hand1">カスタムフィールドが空だった場合の表示</h4>
<p>この記述ではカスタムフィールドが空だった場合に表示されます。</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $ctm = get_post_meta($post-&gt;ID, 'カスタムフィールド名', true);?&gt;
&lt;?php if(empty($ctm)):?&gt;
    空欄だった場合に表示されます。
&lt;?php endif;?&gt;
</pre>
<p>また以下の記述ではカスタムフィールドが空欄だった場合と記述がある場合での表示切替を行います。</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $ctm = get_post_meta($post-&gt;ID, 'カスタムフィールド名', true);?&gt;
&lt;?php if(empty($ctm)):?&gt;
    空欄だった場合に表示されます。
&lt;?php else:?&gt;
    記述が有る場合に表示されます。
    &lt;?php echo post_custom('カスタムフィールド名');?&gt;
&lt;?php endif;?&gt;
</pre>
<h4 class="hand3">ひとつのカスタムフィールドに複数の記述がある場合</h4>
<p><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/04/ctm_thumb.jpg"><br />
　<br />
以下の記述はカスタムフィールドテンプレートの項目追加を利用した場合に活躍します。例では「画像」というカスタムフィールドに複数の記述がされている場合での表示切替を行っております。<br />
　</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $ctm = get_post_meta($post-&gt;ID, '画像', true);?&gt;
&lt;?php if(empty($ctm)):?&gt;
    空欄だった場合に表示されます。
&lt;?php else:?&gt;
    &lt;?php $thumbs = post_custom('画像'); ?&gt;
    &lt;?php if(count($thumbs) == 1 ):?&gt;
        ひとつ記述が有る場合に表示されます。
        &lt;?php echo post_custom('画像');?&gt;
    &lt;?php elseif(count($thumbs) &gt;= 2 ):?&gt;
        複数の記述が有る場合に表示されます。
        &lt;?php foreach ($thumbs as $key =&gt; $value) { echo $value; } ?&gt;
    &lt;?php endif;?&gt;
&lt;?php endif;?&gt;
</pre>
<p>以上です。</p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/wp-custum-fields/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Javascript それぞれでクエリストリングの有無を判別する方法</title>
		<link>http://zxcvbnmnbvcxz.com/php-query_string/</link>
		<comments>http://zxcvbnmnbvcxz.com/php-query_string/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 15:28:13 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8488</guid>
		<description><![CDATA[どうもこんばんは。Toshikuraです。今回のTipsは【PHP クエリストリングの有無を判別する方法】です [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんばんは。Toshikuraです。今回のTipsは【PHP クエリストリングの有無を判別する方法】です。これまた大分局所的な内容ですが一応備忘録として。</p>
<h5>PHP</h5>
<pre class="brush: php; title: ; notranslate">
&lt;?php
if(!empty($_SERVER['QUERY_STRING'])){
	echo 'あるよ';
}else{
	echo 'ないよ';
}
?&gt;
</pre>
<h5>Javascript</h5>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
var url = document.location.href;
var url_split = url.split(&quot;/&quot;);
var files = url_split[url_split.length - 1];
if(!files.indexOf(&quot;?&quot;,0)){
	document.write(&quot;あるよ&quot;);
}else{
	document.write(&quot;ないよ&quot;);
}
&lt;/script&gt;
</pre>
<p>以上になります。</p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/php-query_string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【10選】モノトーンを基調にしたおしゃれWEBサイト &#8211; 10 Wonderful monotone Webdesign</title>
		<link>http://zxcvbnmnbvcxz.com/10-wonderful-monotone-webdesign/</link>
		<comments>http://zxcvbnmnbvcxz.com/10-wonderful-monotone-webdesign/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 05:39:11 +0000</pubDate>
		<dc:creator>Mikiko Kikuoka</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8432</guid>
		<description><![CDATA[こんにちは、Kikuokaの久しぶりの更新です。今回のtipsは【モノトーンを基調にしたおしゃれWEBサイト  [...]]]></description>
				<content:encoded><![CDATA[<p>こんにちは、Kikuokaの久しぶりの更新です。今回のtipsは【モノトーンを基調にしたおしゃれWEBサイト &#8211; 10 Wonderful monotone Webdesign】に関してです。白黒をメインカラーとして使用することで、ポイントにしたい色や目立たせたい要素を際立たせることが効果的にできているデザインや、タイポグラフィーをうまく活用しているデザイン、またシンプルで見やすくきれいに構成されたデザインなど、優れたデザインのサイトを集めてみました。</p>
<style type="text/css">
#postBd .post img {margin:0;box-shadow:none;}
</style>
<h4 class="hand1"><a href="http://www.pipoldesenzano.com/en/ "target="_blank">Pipol</a></h4>
<p><a href="http://www.pipoldesenzano.com/en/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_1.png"></a><br />
<h4 class="hand2"><a href="http://www.todaythe12.com/ "target="_blank">The Twelvestudio créatifThe Twelve2013</a></h4>
<p><a href="http://www.todaythe12.com/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_2.png"></a><br />
<h4 class="hand3"><a href="http://www.doctorjekyll.com/#!en/home.html "target="_blank">Doctor JekyllControversial Ideas</a></h4>
<p><a href="http://www.doctorjekyll.com/#!en/home.html "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_3.png"></a><br />
<h4 class="hand4"><a href="http://www.numero10.ch/fr/home/ "target="_blank">numéro10The Agency for Synchronised CommunicationSyncBig numéro 10numero10</a></h4>
<p><a href="http://www.numero10.ch/fr/home/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_4.png"></a><br />
<h4 class="hand5"><a href="http://www.andreaskleiberg.no/ "target="_blank">Andreas Kleiberg</a></h4>
<p><a href="http://www.andreaskleiberg.no/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_5.png"></a><br />
<h4 class="hand6"><a href="http://kenji-special.com/ "target="_blank">Kenji Saito</a></h4>
<p><a href="http://kenji-special.com/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_6.png"></a><br />
<h4 class="hand6"><a href="http://thewclub.com/ "target="_blank">The Windmill Club</a></h4>
<p><a href="http://thewclub.com/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_7.png"></a><br />
<h4 class="hand6"><a href="http://kobito.co/ "target="_blank">kobito inc.</a></h4>
<p><a href="http://kobito.co/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_8.png"></a><br />
<h4 class="hand6"><a href="http://www.chanterelle.jp/index.html "target="_blank">Les Chanterellesフランス料理シャントレル</a></h4>
<p><a href="http://www.chanterelle.jp/index.html "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_9.png"></a><br />
<h4 class="hand6"><a href="http://www.eduardonunes.me/ "target="_blank">Eduardo Nunes – Cross Media Designer</a></h4>
<p><a href="http://www.eduardonunes.me/ "target="_blank"><img src="http://zxcvbnmnbvcxz.com/wp-content/uploads/2013/03/mono_10.png"></a></p>
<p>以上になります。</p>
<p>色使いがシンプルな分、複雑な動きでとてもインパクトのあるサイトが多かったように思います。写真をメインにしているサイトにも相性が良さそうですね。参考にしてみてはいかがでしょうか。</p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/10-wonderful-monotone-webdesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery 特定要素がアニメーション中か判別する方法</title>
		<link>http://zxcvbnmnbvcxz.com/jquery-animate-handle/</link>
		<comments>http://zxcvbnmnbvcxz.com/jquery-animate-handle/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 11:17:35 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8333</guid>
		<description><![CDATA[どうもこんばんは。Toshikuraです。今回のTiosは【jQuery 特定要素がアニメーション中か判別する [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんばんは。Toshikuraです。今回のTiosは【jQuery 特定要素がアニメーション中か判別する方法】です。随分局所的なTipsですが…先日作成した<a href="http://zxcvbnmnbvcxz.com/jquery-slideinslide/" target="_blank">謎スライダー</a>でも活躍していたのでメモしておきます。</p>
<h4 class="hand1">実装方法</h4>
<p><b>読み込み</b></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script src=&quot;http://code.jquery.com/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;
</pre>
<pre class="brush: jscript; title: ; notranslate">
if($('#tgt').is(':animated')){
	$('#flg').text('Animate');
}else{
	$('#flg').text('...');
}
</pre>
<p>どのタイミングで判別させるかによって動作のタイミングが変わってきますのでお気をつけ下さい。</p>
<p><b>一定時間ごとに判別</b></p>
<pre class="brush: jscript; title: ; notranslate">
setInterval(function(){
	if($('#tgt').is(':animated')){
		$('#flg').text('Animate');
	}else{
		$('#flg').text('...');
	}
},100);
</pre>
<p><b>クリックで判別</b></p>
<pre class="brush: jscript; title: ; notranslate">
$(function(){
	$(&quot;#...&quot;).click(function(){
		if($('#tgt').is(':animated')){
			$('#flg').text('Animate');
		}else{
			$('#flg').text('...');
		}
	});
});
</pre>
<p>今回出てきました【is】はjqueryの中でもなかなか役に立つやつなので覚えておいてもいいかもしれせんね。これに関しては少し前に記事化していますので、もしよろしければ合わせてご参照ください。<a href="http://zxcvbnmnbvcxz.com/jquery-is/" target="_blank">参照：jQuery isの利用方法 – 条件式を満たす場合に要素を操作</a></p>
<p>以上になります。</p>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/animate_tgl.html" target="_blank" class="demo"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/jquery-animate-handle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery スライダーの中にスライダーが設置できるプラグイン【 jQuery slideinslide 】</title>
		<link>http://zxcvbnmnbvcxz.com/jquery-slideinslide/</link>
		<comments>http://zxcvbnmnbvcxz.com/jquery-slideinslide/#comments</comments>
		<pubDate>Wed, 06 Mar 2013 12:30:29 +0000</pubDate>
		<dc:creator>Kenta Toshikura</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://zxcvbnmnbvcxz.com/?p=8301</guid>
		<description><![CDATA[どうもこんばんは。今回のTipsは【jQuery スライダーの中にスライダーが設置できるプラグイン jQuer [...]]]></description>
				<content:encoded><![CDATA[<p>どうもこんばんは。今回のTipsは【jQuery スライダーの中にスライダーが設置できるプラグイン jQuery slideinslide】です。今回のプラグインは自作です。機会は少ないですが何度かスライダーの中にスライダーを設置したいという場面がありました。これまでは都度スクリプトを書いていたのですが…ちょっと面倒だなぁとプラグイン化しました。この謎なプラグイン…自分用にとっておいてもいいのですが、存在自体忘れる可能性もあるので…備忘録としてメモしておきます。</p>
<h4 class="hand1"><a href="http://zxcvbnmnbvcxz.com/demonstration/plugin/slideinslide/index_vertical.html" target="_blank">DEMO &#038; DOWNLOAD</a></h4>
<p><b>更新情報</b><br />
・2013 3/8 水平方向へのスライド機能を追加。詳しくはOptionをご確認ください。上下左右のキーボートにも対応しております。<a href="http://zxcvbnmnbvcxz.com/demonstration/plugin/slideinslide/index_vertical.html" target="_blank">DEMOはこちらから</a></p>
<h4 class="hand2">実装方法</h4>
<p>実装は至ってシンプルです。スライドの中にスライドの入るHTMLを用意し、プラグインを読み込みます。</p>
<p><b>読み込みファイル（jQueryは1.7以降から動作確認済み）</b></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script src=&quot;js/jquery-1.7.2.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;js/jquery.easing.1.3.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;js/jquery.slideinslide.js&quot;&gt;&lt;/script&gt;
</pre>
<pre class="brush: css; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/decoration.css&quot;/&gt;
</pre>
<p><b>HTML</b></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;slideBd&quot;&gt;
	&lt;div&gt;&lt;div class=&quot;slide&quot;&gt;slide1-1&lt;/div&gt;slide1-2&lt;/div&gt;slide1-3&lt;/div&gt;&lt;/div&gt;
	&lt;div&gt;&lt;div class=&quot;slide&quot;&gt;slide2-1&lt;/div&gt;slide2-2&lt;/div&gt;
	&lt;div&gt;&lt;div class=&quot;slide&quot;&gt;slide3-1&lt;/div&gt;
&lt;/div&gt;
</pre>
<p><b>JS</b></p>
<pre class="brush: jscript; title: ; notranslate">
$(function(){
	$('#slideBd').slideinslide();
});
</pre>
<p>実装に関しては以上です。decoration.cssには【次/前】のデザイン等が含まれています。必要なければ外していただいて構いませんが記述推奨です。</p>
<h4 class="hand3">ブラウザ</h4>
<p>IE7,IE8,IE9,Chrome,Firefox,Safari,Opera</p>
<h4 class="hand4">オプション</h4>
<p>2013年3月6日時点で用意したオプションは以下になります。通常のスライダープラグインとあまり変わりません。</p>
<table cellpadding="0" cellspacing="0" border="0" id="blogtable" width="100%" style=" margin-top:20px; text-align:center;">
<tbody>
<tr>
<td>オプション</td>
<td>設定</td>
<td>概要</td>
</tr>
<tr>
<td>auto</td>
<td>true / false</td>
<td>自動再生のON/OFFを指定します。</td>
</tr>
<tr>
<td>intval</td>
<td>1000</td>
<td>自動再生時のスライドのタイミングを指定します。</td>
</tr>
<tr>
<td>speed</td>
<td>1000</td>
<td>スライドのスピードを指定します。</td>
</tr>
<tr>
<td>ease</td>
<td>&#8216;easeInOutExpo&#8217;</td>
<td>アニメーションのイージングを指定します。</td>
</tr>
<tr>
<td>captions</td>
<td>true / false</td>
<td>キャプションの有無を指定します。</td>
</tr>
<tr>
<td>key</td>
<td>true / false</td>
<td>キーボードによるスライドの可不可を指定します。</td>
</tr>
<tr>
<td>prev</td>
<td>&#8216;prev&#8217;</td>
<td>スライダー内スライドの【前へ】を編集できます（HTML可）</td>
</tr>
<tr>
<td>next</td>
<td>&#8216;next&#8217;</td>
<td>スライダー内スライドの【次へ】を編集できます（HTML可）</td>
</tr>
<tr>
<td>slideprev</td>
<td>&#8216;slideprev&#8217;</td>
<td>スライダーの【次へ】を編集できます（HTML可）</td>
</tr>
<tr>
<td>slidenext</td>
<td>&#8216;slidenext&#8217;</td>
<td>スライダーの【前へ】を編集できます（HTML可）</td>
</tr>
<tr>
<td>slidestop</td>
<td>&#8216;slidestop&#8217;</td>
<td>自動再生停止のテキストを変更する場合に使用（HTML可）</td>
</tr>
<tr>
<td>vertical</td>
<td>true / false</td>
<td>スライダー内のスライドアニメーションを水平方向に変更できます。</td>
</tr>
</tbody>
</table>
<p><b>オプション設定例</b></p>
<pre class="brush: jscript; title: ; notranslate">
$(function(){
	$('#slideBd').slideinslide({
		intval   : 3000,
		speed    : 1000,
		ease     : 'easeInOutExpo',
		auto     : false,
		captions : true
	});
});
</pre>
<p><a href="http://zxcvbnmnbvcxz.com/demonstration/plugin/slideinslide/index_vertical.html" target="_blank" class="demo"></a></p>
<p>スライダーを大量に見せたい場合や、スライダーのみでサイトを完結させてしまうような場面には使えそうですね。以上になります。</p>
]]></content:encoded>
			<wfw:commentRss>http://zxcvbnmnbvcxz.com/jquery-slideinslide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
