<?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>latup</title>
	<atom:link href="http://latup.com/feed" rel="self" type="application/rss+xml" />
	<link>http://latup.com</link>
	<description>熊本でホームページ制作をしている人のメモ</description>
	<lastBuildDate>Tue, 19 Oct 2010 17:56:07 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/feed" />
		<item>
		<title>WPのネットワーク時にKtai Styleで画像が表示されない問題</title>
		<link>http://latup.com/web/wordpress/wp%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e6%99%82%e3%81%abktai-style%e3%81%a7%e7%94%bb%e5%83%8f%e3%81%8c%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84%e5%95%8f-2010-08-25.htm</link>
		<comments>http://latup.com/web/wordpress/wp%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e6%99%82%e3%81%abktai-style%e3%81%a7%e7%94%bb%e5%83%8f%e3%81%8c%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84%e5%95%8f-2010-08-25.htm#comments</comments>
		<pubDate>Wed, 25 Aug 2010 03:00:12 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[携帯サイト]]></category>
		<category><![CDATA[Ktai Style]]></category>
		<category><![CDATA[携帯]]></category>

		<guid isPermaLink="false">http://latup.com/?p=921</guid>
		<description><![CDATA[WordPress　3.0.1 ネットワーク（マルチサイト、複数サイト）化して Ktai Style 2.0.3 で携帯ページを表示する際に記事内の画像が表示されないケース plugins/ktai-style/inc/ [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress　3.0.1 ネットワーク（マルチサイト、複数サイト）化して<br />
Ktai Style 2.0.3 で携帯ページを表示する際に記事内の画像が表示されないケース</p>
<p>plugins/ktai-style/inc/shrinkage.php<br />
でネットワーク化したWordPressの判定が無いで画像フォルダの指定が正しくされていない。<br />
なので無理やりWordPress MU の処理を適用させるために下記をコメントアウト。</p>
<pre class="brush: php; title: ; notranslate">
89-111行目
	if (! isset($wpmu_version)) {  // single install WordPress
		$uploads = wp_upload_dir();
		$uploads_url = trailingslashit($uploads['baseurl']);
		$content_url = trailingslashit(content_url());
		if ( $uploads['baseurl'] &amp;&amp; false === strpos($uploads_url, $this-&gt;wpurl) &amp;&amp; false === strpos($uploads_url, $content_url) ) {
			$this-&gt;self_dir[] = trailingslashit(str_replace('\\', '/', $uploads['basedir']));
			$this-&gt;self_url[] = $uploads_url;
			$this-&gt;self_url_path[] = $url_path = $this-&gt;base-&gt;strip_host($uploads_url);
			$this-&gt;self_regex[] = $this-&gt;make_url_regex($uploads_url, $url_path);
		}
		if ( strlen($content_url) &lt;= 1 &amp;&amp; false === strpos($content_url, $this-&gt;wpurl) ) {
			$this-&gt;self_dir[] = trailingslashit(str_replace('\\', '/', WP_CONTENT_DIR));
			$this-&gt;self_url[] = $content_url;
			$this-&gt;self_url_path[] = $url_path = $this-&gt;base-&gt;strip_host($content_url);
			$this-&gt;self_regex[] = $this-&gt;make_url_regex($content_url, $url_path);
		}
		if ($this-&gt;wpurl) {
			$this-&gt;self_dir[] = str_replace('\\', '/', ABSPATH);
			$this-&gt;self_url[] = $this-&gt;wpurl;
			$this-&gt;self_url_path[] = $url_path = $this-&gt;base-&gt;strip_host($this-&gt;wpurl);
			$this-&gt;self_regex[] = $this-&gt;make_url_regex($this-&gt;wpurl, $url_path);
		}
	} else { // WordPress MU

122行目
	}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/wordpress/wp%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e6%99%82%e3%81%abktai-style%e3%81%a7%e7%94%bb%e5%83%8f%e3%81%8c%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84%e5%95%8f-2010-08-25.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/wordpress/wp%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e6%99%82%e3%81%abktai-style%e3%81%a7%e7%94%bb%e5%83%8f%e3%81%8c%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84%e5%95%8f-2010-08-25.htm" />
	</item>
		<item>
		<title>簡単なjQueryのタブ切替サンプル【複数版】</title>
		<link>http://latup.com/web/web-jquery/jquery-tabs-2010-08-23.htm</link>
		<comments>http://latup.com/web/web-jquery/jquery-tabs-2010-08-23.htm#comments</comments>
		<pubDate>Mon, 23 Aug 2010 02:46:25 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://latup.com/?p=917</guid>
		<description><![CDATA[簡単なアコーディオン処理の記事に「CSSもjsも（タブの）数を増やしても変更しなくていい」サンプルが無いかとコメントが来ていたので考えてみた。 簡単なタブ切替処理のサンプル【複数のタブに対応】 以下、サンプルの解説。 今 [...]]]></description>
			<content:encoded><![CDATA[<p><a  href="http://latup.com/web/web-jquery/jquery-tab-2009-05-04.htm">簡単なアコーディオン処理の記事</a>に「CSSもjsも（タブの）数を増やしても変更しなくていい」サンプルが無いかとコメントが来ていたので考えてみた。<br />
<a  href="http://latup.com/sample/jquery-tabs.htm" target="_blank">簡単なタブ切替処理のサンプル【複数のタブに対応】</a></p>
<p>以下、サンプルの解説。<br />
<span id="more-917"></span><br />
今回もjQueryはGoogleからもらい、jQueryの処理は外部ファイルとしてまとめます。<br />
全体は実際のサンプルページのHTMLソースを参考して下さい。<br />
jQuery部分の処理は以下の通り。</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function(){

	// 初期設定
		// #nav直下の全li要素の中から最初のli要素に.selectを追加
		$(&quot;#nav &gt; li:first-child&quot;).addClass(&quot;select&quot;);
		// #nav直下の全li要素にマウスオーバーしたらリンク要素に偽装
		$(&quot;#nav &gt; li&quot;).hover(function(){
			$(this).css(&quot;cursor&quot;,&quot;pointer&quot;);
		},function(){
			$(this).css(&quot;cursor&quot;,&quot;default&quot;);
		});

		// #tab直下の全div要素を非表示
		$(&quot;#tab &gt; div&quot;).hide();
		// #tab直下の全div要素の中から最初のdiv要素を表示
		$(&quot;#tab &gt; div:nth-child(2)&quot;).show();

	// 複数のタブの場合の追加処理【追加した部分】
	$(&quot;#nav &gt; li&quot;).hover(
		function () {
			// マウスオーバーしているli要素の親属性の親属性に.hoversを追加
			$(this).parent().parent().addClass(&quot;hovers&quot;);
		},
		function () {
			// マウスオーバー解除の時に.hoversを削除
			$(this).parent().parent().removeClass(&quot;hovers&quot;);
		}
	);

	// タブ切替処理
	$(&quot;#nav &gt; li&quot;).click(function () {
		// .hovers下の#nav直下の全li要素のclass属性を削除　【追加した部分】
		$(&quot;#nav &gt; li&quot;).filter(&quot;.hovers li&quot;).removeClass(&quot;select&quot;);
		// クリックしたli要素に.selectを追加
		$(this).addClass(&quot;select&quot;);
		// .hovers下の#tab直下の全div要素を非表示　【追加した部分】
		$(&quot;#tab &gt; div&quot;).filter(&quot;.hovers div&quot;).hide();
		// クリックしたタブのインデックス番号と同じdiv要素をフェード表示
		$(&quot;#tab &gt; div&quot;).eq($(&quot;#nav &gt; li&quot;).index(this)).fadeIn();
	});
});
</pre>
<p>簡単に説明するとマウスオーバー状態のタブに対してのみ非表示等の処理を行うようになってます。</p>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/web-jquery/jquery-tabs-2010-08-23.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/web-jquery/jquery-tabs-2010-08-23.htm" />
	</item>
		<item>
		<title>WordPressのコンテンツを静的ページ内に設置する</title>
		<link>http://latup.com/web/wordpress/wordpress%e3%81%ae%e3%82%b3%e3%83%b3%e3%83%86%e3%83%b3%e3%83%84%e3%82%92%e9%9d%99%e7%9a%84%e3%83%9a%e3%83%bc%e3%82%b8%e5%86%85%e3%81%ab%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b-2010-08-04.htm</link>
		<comments>http://latup.com/web/wordpress/wordpress%e3%81%ae%e3%82%b3%e3%83%b3%e3%83%86%e3%83%b3%e3%83%84%e3%82%92%e9%9d%99%e7%9a%84%e3%83%9a%e3%83%bc%e3%82%b8%e5%86%85%e3%81%ab%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b-2010-08-04.htm#comments</comments>
		<pubDate>Wed, 04 Aug 2010 07:35:18 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://latup.com/?p=911</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml; title: ; notranslate">
   &lt;ul id=&quot;blog&quot;&gt;
    &lt;?php
        require('../blog/wp-blog-header.php');
        switch_to_blog(2); // サイトIDを指定

        $posts = get_posts();
        foreach ($posts as $post):
        setup_postdata($post);
    ?&gt;
    &lt;li&gt;&lt;div class=&quot;blog_title&quot;&gt; [ &lt;?php the_time('Y.m.d') ?&gt; ] &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/div&gt;&lt;?php the_content(); ?&gt;&lt;/li&gt;
    &lt;?php endforeach; ?&gt;
    &lt;li&gt;&lt;/li&gt;
   &lt;/ul&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/wordpress/wordpress%e3%81%ae%e3%82%b3%e3%83%b3%e3%83%86%e3%83%b3%e3%83%84%e3%82%92%e9%9d%99%e7%9a%84%e3%83%9a%e3%83%bc%e3%82%b8%e5%86%85%e3%81%ab%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b-2010-08-04.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/wordpress/wordpress%e3%81%ae%e3%82%b3%e3%83%b3%e3%83%86%e3%83%b3%e3%83%84%e3%82%92%e9%9d%99%e7%9a%84%e3%83%9a%e3%83%bc%e3%82%b8%e5%86%85%e3%81%ab%e8%a8%ad%e7%bd%ae%e3%81%99%e3%82%8b-2010-08-04.htm" />
	</item>
		<item>
		<title>wp3.0携帯投稿設定</title>
		<link>http://latup.com/web/wordpress/wp3-0%e6%90%ba%e5%b8%af%e6%8a%95%e7%a8%bf%e8%a8%ad%e5%ae%9a-2010-07-16.htm</link>
		<comments>http://latup.com/web/wordpress/wp3-0%e6%90%ba%e5%b8%af%e6%8a%95%e7%a8%bf%e8%a8%ad%e5%ae%9a-2010-07-16.htm#comments</comments>
		<pubDate>Fri, 16 Jul 2010 03:00:27 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://latup.com/?p=909</guid>
		<description><![CDATA[WordPressのネットワークを使った場合、メール投稿用の設定が特権管理者のみ変更できるようになるようで、その設定場所 特権管理者 &#62; サイト &#62; 編集 &#62; Mailserver Url Mailse [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressのネットワークを使った場合、メール投稿用の設定が特権管理者のみ変更できるようになるようで、その設定場所</p>
<p>特権管理者 &gt; サイト &gt; 編集 &gt;</p>
<p>Mailserver Url</p>
<p>Mailserver Login</p>
<p>Mailserver Pass</p>
<p>Mailserver Port</p>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/wordpress/wp3-0%e6%90%ba%e5%b8%af%e6%8a%95%e7%a8%bf%e8%a8%ad%e5%ae%9a-2010-07-16.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/wordpress/wp3-0%e6%90%ba%e5%b8%af%e6%8a%95%e7%a8%bf%e8%a8%ad%e5%ae%9a-2010-07-16.htm" />
	</item>
		<item>
		<title>WordPressのカレンダーの土日に色付け</title>
		<link>http://latup.com/web/web-jquery/wordpress%e3%81%ae%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%81%ae%e5%9c%9f%e6%97%a5%e3%81%ab%e8%89%b2%e4%bb%98%e3%81%91-2010-07-10.htm</link>
		<comments>http://latup.com/web/web-jquery/wordpress%e3%81%ae%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%81%ae%e5%9c%9f%e6%97%a5%e3%81%ab%e8%89%b2%e4%bb%98%e3%81%91-2010-07-10.htm#comments</comments>
		<pubDate>Sat, 10 Jul 2010 01:57:57 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://latup.com/?p=846</guid>
		<description><![CDATA[日曜始まりのカレンダーを対象]]></description>
			<content:encoded><![CDATA[<p>日曜始まりのカレンダーを対象</p>
<pre class="brush: xml; title: ; notranslate">
        &lt;script type=&quot;text/javascript&quot;&gt;
			$(document).ready(
				function(){
					$('#wp-calendar th:first , #wp-calendar tbody tr td:first-child:not(.pad)').addClass(&quot;sunday&quot;);
					$('#wp-calendar th:last , #wp-calendar tbody tr td:last-child:not(.pad)').addClass(&quot;saturday&quot;);
				});
        &lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/web-jquery/wordpress%e3%81%ae%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%81%ae%e5%9c%9f%e6%97%a5%e3%81%ab%e8%89%b2%e4%bb%98%e3%81%91-2010-07-10.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/web-jquery/wordpress%e3%81%ae%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%81%ae%e5%9c%9f%e6%97%a5%e3%81%ab%e8%89%b2%e4%bb%98%e3%81%91-2010-07-10.htm" />
	</item>
		<item>
		<title>google code でブログＱＲ表示</title>
		<link>http://latup.com/web/wordpress/google-code-qr-wordpress-2010-07-10.htm</link>
		<comments>http://latup.com/web/wordpress/google-code-qr-wordpress-2010-07-10.htm#comments</comments>
		<pubDate>Sat, 10 Jul 2010 01:54:21 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://latup.com/?p=840</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml; title: ; notranslate">
           &lt;li class=&quot;widget&quot;&gt;
            	&lt;h2 class=&quot;widgettitle&quot;&gt;ブログ 携帯サイト&lt;/h2&gt;
                &lt;img alt=&quot;QR code&quot; src=&quot;http://chart.apis.google.com/chart?chs=100x100&amp;amp;cht=qr&amp;amp;chl=&lt;?php echo get_option('home'); ?&gt;/&amp;amp;choe=UTF-8&quot;&gt;
            &lt;/li&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/wordpress/google-code-qr-wordpress-2010-07-10.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/wordpress/google-code-qr-wordpress-2010-07-10.htm" />
	</item>
		<item>
		<title>チェックを入れて質問を表示</title>
		<link>http://latup.com/web/web-jquery/jqueryquestion-2010-02-06.htm</link>
		<comments>http://latup.com/web/web-jquery/jqueryquestion-2010-02-06.htm#comments</comments>
		<pubDate>Sat, 06 Feb 2010 08:00:18 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://latup.com/?p=831</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml; title: ; notranslate">
$('#question').hide();
$('input').click(function () {
　　if(this.checked){
　　　　$('#question').show();
　　}else{
　　　　$('#question').hide();
　　}
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/web-jquery/jqueryquestion-2010-02-06.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/web-jquery/jqueryquestion-2010-02-06.htm" />
	</item>
		<item>
		<title>イメージツールバーの表示制御</title>
		<link>http://latup.com/web/web-browser/imagetoolbar-2010-02-03.htm</link>
		<comments>http://latup.com/web/web-browser/imagetoolbar-2010-02-03.htm#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:53:48 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[Ｗｅｂブラウザ]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://latup.com/?p=816</guid>
		<description><![CDATA[img要素別に制御する場合は]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml; title: ; notranslate">
&lt;meta http-equiv=&quot;imagetoolbar&quot; content=&quot;no&quot;&gt;
</pre>
<p>img要素別に制御する場合は</p>
<pre class="brush: xml; title: ; notranslate">
&lt;img src=&quot;ima.jpg&quot; galleryimg=&quot;yes&quot;&gt; // イメージツールバーの表示
or
&lt;img src=&quot;ima.jpg&quot; galleryimg=&quot;no&quot;&gt; // イメージツールバーの非表示
</pre>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/web-browser/imagetoolbar-2010-02-03.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/web-browser/imagetoolbar-2010-02-03.htm" />
	</item>
		<item>
		<title>docomoでのフォーム表示</title>
		<link>http://latup.com/web/mobile/docomo-2010-02-03.htm</link>
		<comments>http://latup.com/web/mobile/docomo-2010-02-03.htm#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:46:58 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[携帯サイト]]></category>

		<guid isPermaLink="false">http://latup.com/?p=812</guid>
		<description><![CDATA[docomoではinputタグのみでは表示されない。 と最低限actionの記述が必要]]></description>
			<content:encoded><![CDATA[<p>docomoではinputタグのみでは表示されない。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;form action=&quot;&quot;&gt;&lt;input type=&quot;text&quot;&gt;&lt;/form&gt;
</pre>
<p>と最低限actionの記述が必要</p>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/mobile/docomo-2010-02-03.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/mobile/docomo-2010-02-03.htm" />
	</item>
		<item>
		<title>携帯サイトでGoogleMAP＋GPSナビへのリンクを設置</title>
		<link>http://latup.com/web/mobile/mobile-googlemap-gpsnavi-2009-11-20.htm</link>
		<comments>http://latup.com/web/mobile/mobile-googlemap-gpsnavi-2009-11-20.htm#comments</comments>
		<pubDate>Fri, 20 Nov 2009 01:37:31 +0000</pubDate>
		<dc:creator>latup</dc:creator>
				<category><![CDATA[携帯サイト]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[地図]]></category>
		<category><![CDATA[携帯]]></category>

		<guid isPermaLink="false">http://latup.com/?p=759</guid>
		<description><![CDATA[携帯サイト用にGoogleMAP（画像）を設置しただけでは寂しいので、docomoとauからのアクセスの場合は自動でキャリアのGPSナビゲーションへのリンクを地図下部に表示するサンプルを作ってみた。 GoogleMAPと [...]]]></description>
			<content:encoded><![CDATA[<p>携帯サイト用にGoogleMAP（画像）を設置しただけでは寂しいので、docomoとauからのアクセスの場合は自動でキャリアのGPSナビゲーションへのリンクを地図下部に表示するサンプルを作ってみた。</p>
<p>GoogleMAPとauの緯度経度情報は10進法なのに対してdocomoは60新法なので、10進法→60進法へ自動計算出来ればベストなのですが、PHPの知識が足りないので挫折。<br />
softbankはキャリア提供のGPSナビが無い様なので無視。</p>
<p>サンプルの座標は熊本城。<br />
・・・・・本丸御殿を見に行きたい。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?PHP
    // ユーザエージェントの取得
    $agent = $_SERVER['HTTP_USER_AGENT'];

    // 10進法
    $lat = 32.806173 ; // 緯度
    $lon = 130.705834 ; // 経度

    // 60進法 (docomo用)
    $lat2 = '32.48.22.223' ; // 緯度
    $lon2 = '130.42.21.004' ; // 経度

    // Google MAPの設定
    $api_key = '(APIキー）' ; // APIキー
	$size_w = 200 ; // 地図画像の幅
	$size_h = 150 ; // 地図画像の高さ
	$zoom = 14 ; // ズームレベル

    // Google MAPの記述
    echo '&lt;center&gt;&lt;img src=&quot;http://maps.google.com/staticmap?center=' . $lat . ',' . $lon . '&amp;markers=' . $lat . ',' . $lon . '&amp;zoom=' . $zoom . '&amp;size=' . $size_w . 'x' . $size_h . '&amp;key=' . $api_key . '&quot;&gt;&lt;br /&gt;' ;

    // 各キャリアのナビゲーションへのリンク
    if (preg_match('/^J-PHONE/', $agent) or
        preg_match('/^Vodafone/', $agent) or
        preg_match('/^SoftBank/', $agent) or
        preg_match('/^MOT-/', $agent)) {
        // SoftBank
        echo '&lt;/center&gt;';
    } elseif (preg_match('/^DoCoMo/', $agent)) {
        // docomo
        echo '&lt;a href=&quot;http://docomo.ne.jp/cp/map.cgi?geo=wgs84&amp;lat=' . $lat2 . '&amp;lon=' . $lon2 . '&quot;&gt;ナビを起動&lt;/a&gt;&lt;/center&gt;' ;
    } elseif (preg_match('/UP.Browser/', $agent)) {
        // au
        echo '&lt;a href=&quot;http://walk.eznavi.jp/map/?datum=0&amp;unit=1&amp;lat=+' . $lat . '&amp;lon=+' . $lon . '&quot;&gt;ナビを起動&lt;/a&gt;&lt;/center&gt;' ;
    } else {
        // その他
        echo '&lt;/center&gt;';
    }
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://latup.com/web/mobile/mobile-googlemap-gpsnavi-2009-11-20.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://latup.com/web/mobile/mobile-googlemap-gpsnavi-2009-11-20.htm" />
	</item>
	</channel>
</rss>

