<?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>HTML | 相模原市ホームページ制作 ロックストリーム</title>
	<atom:link href="https://rockstream-jp.com/category/blog/html/feed/" rel="self" type="application/rss+xml" />
	<link>https://rockstream-jp.com</link>
	<description>相模原市WEBサイト制作・カスタム・修復</description>
	<lastBuildDate>Mon, 05 Nov 2018 04:31:40 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="self" href="https://rockstream-jp.com/category/blog/html/feed/"/>
	<item>
		<title>【Javascript】HTML 4.01 Transitionalでレスポンシブにする方法</title>
		<link>https://rockstream-jp.com/html4-0-responsive/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html4-0-responsive</link>
					<comments>https://rockstream-jp.com/html4-0-responsive/#respond</comments>
		
		<dc:creator><![CDATA[zassy]]></dc:creator>
		<pubDate>Fri, 02 Mar 2018 03:05:40 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[ホームページ制作]]></category>
		<guid isPermaLink="false">https://rockstream-jp.com/?p=10879</guid>

					<description><![CDATA[<p>備忘録です。 WordPressや静的ページのコーディングではHTML5あるいXHTMLを使っていますが、レスポンシブの場合、HT...</p>
The post <a href="https://rockstream-jp.com/html4-0-responsive/">【Javascript】HTML 4.01 Transitionalでレスポンシブにする方法</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&amp;linkname=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&amp;linkname=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&amp;linkname=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&#038;title=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" data-a2a-url="https://rockstream-jp.com/html4-0-responsive/" data-a2a-title="【Javascript】HTML 4.01 Transitionalでレスポンシブにする方法"></a></p><p>備忘録です。</p>
<p>WordPressや静的ページのコーディングではHTML5あるいXHTMLを使っていますが、レスポンシブの場合、HTML5で対応をしています。</p>
<p>HTML 4.01 Transitionalではどうなのだろうかと思い調べました。</p>
<p>参考サイト<br />
<a href="https://xweb.wanichan.jp/kb/14.html" rel="noopener" target="_blank">HTML 4.01とXHTML 1.0とHTML 5、どれを選択すべき？</a></p>
<p>下記よりrespond.jsをダウンロードします。<br />
<a href="https://github.com/scottjehl/Respond" rel="noopener" target="_blank">https://github.com/scottjehl/Respond</a></p>
<p>head内に記述<br />※ディレクトリは任意の場所</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link href=&quot;/css/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
&lt;script charset=&quot;utf-8&quot; src=&quot;/js/respond.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p class="mb50">注意点としては、CSSファイルを指定したlinkタグの後に記述しなければいけない、ということです。</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&amp;linkname=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&amp;linkname=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&amp;linkname=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fhtml4-0-responsive%2F&#038;title=%E3%80%90Javascript%E3%80%91HTML%204.01%20Transitional%E3%81%A7%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B7%E3%83%96%E3%81%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95" data-a2a-url="https://rockstream-jp.com/html4-0-responsive/" data-a2a-title="【Javascript】HTML 4.01 Transitionalでレスポンシブにする方法"></a></p>The post <a href="https://rockstream-jp.com/html4-0-responsive/">【Javascript】HTML 4.01 Transitionalでレスポンシブにする方法</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></content:encoded>
					
					<wfw:commentRss>https://rockstream-jp.com/html4-0-responsive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【metaタグ】Edgeの電話番号がリンクになった場合</title>
		<link>https://rockstream-jp.com/edge-tel-link/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=edge-tel-link</link>
					<comments>https://rockstream-jp.com/edge-tel-link/#respond</comments>
		
		<dc:creator><![CDATA[zassy]]></dc:creator>
		<pubDate>Mon, 29 May 2017 06:47:20 +0000</pubDate>
				<category><![CDATA[ブラウザ]]></category>
		<category><![CDATA[HTML]]></category>
		<guid isPermaLink="false">https://rockstream-jp.com/?p=4103</guid>

					<description><![CDATA[<p>備忘録です。 普段はFirefox、Chromeを使っているので、気づきませんでしたが、Edgeだけ電話番号が勝手にリンクになって...</p>
The post <a href="https://rockstream-jp.com/edge-tel-link/">【metaタグ】Edgeの電話番号がリンクになった場合</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&#038;title=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" data-a2a-url="https://rockstream-jp.com/edge-tel-link/" data-a2a-title="【metaタグ】Edgeの電話番号がリンクになった場合"></a></p><p>備忘録です。</p>
<p>普段はFirefox、Chromeを使っているので、気づきませんでしたが、Edgeだけ電話番号が勝手にリンクになってしまいます。<br />
本当にマイクロソフトのブラウザは面倒ですね。</p>
<p>しかし、下記タグをheadに追加して解決です。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;
</pre>
<p class="mb20">参考サイト<br />
<a href="http://m31.fool.jp/edge%E3%81%A7%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%A1%E3%82%83%E3%81%86%E3%82%84%E3%81%A4/" target="_blank">Edgeで電話番号がリンクになっちゃうやつ</a></p>
<p class="mb40">関連して、電話番号がスカイプのアイコンになる場合には、下記を参考にしてください。<br />
<a href="https://rockstream-jp.com/metatag-browser-skypeicon/">【metaタグ】ブラウザの電話番号をSkypeアイコンにしない方法</a></p>
<p>
<a href="https://px.a8.net/svt/ejp?a8mat=2HO4KZ+75SPPU+50+2HH8I9" target="_blank"><br />
<img fetchpriority="high" decoding="async" border="0" width="728" height="90" alt="" src="http://www21.a8.net/svt/bgt?aid=150611507433&wid=001&eno=01&mid=s00000000018015029000&mc=1"></a><br />
<img decoding="async" border="0" width="1" height="1" src="http://www19.a8.net/0.gif?a8mat=2HO4KZ+75SPPU+50+2HH8I9" alt=""></p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fedge-tel-link%2F&#038;title=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91Edge%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%81%8C%E3%83%AA%E3%83%B3%E3%82%AF%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%9F%E5%A0%B4%E5%90%88" data-a2a-url="https://rockstream-jp.com/edge-tel-link/" data-a2a-title="【metaタグ】Edgeの電話番号がリンクになった場合"></a></p>The post <a href="https://rockstream-jp.com/edge-tel-link/">【metaタグ】Edgeの電話番号がリンクになった場合</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></content:encoded>
					
					<wfw:commentRss>https://rockstream-jp.com/edge-tel-link/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Javascript】Google Mapsでオリジナルのマーカーを表示</title>
		<link>https://rockstream-jp.com/javascript-google-maps-original-maker/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-google-maps-original-maker</link>
					<comments>https://rockstream-jp.com/javascript-google-maps-original-maker/#respond</comments>
		
		<dc:creator><![CDATA[zassy]]></dc:creator>
		<pubDate>Fri, 12 May 2017 01:24:10 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Googleマップ]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Google Maps]]></category>
		<guid isPermaLink="false">https://rockstream-jp.com/?p=4087</guid>

					<description><![CDATA[<p>備忘録です Google Mapでオリジナルのマーカーを表示する方法です。 参考サイト (K)GoogleMapをサイトに埋め込ん...</p>
The post <a href="https://rockstream-jp.com/javascript-google-maps-original-maker/">【Javascript】Google Mapsでオリジナルのマーカーを表示</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&amp;linkname=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&amp;linkname=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&amp;linkname=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&#038;title=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" data-a2a-url="https://rockstream-jp.com/javascript-google-maps-original-maker/" data-a2a-title="【Javascript】Google Mapsでオリジナルのマーカーを表示"></a></p><p>備忘録です</p>
<p>Google Mapでオリジナルのマーカーを表示する方法です。</p>
<p>参考サイト<br />
<a href="http://webkcampus.com/201502/995/" target="_blank">(K)GoogleMapをサイトに埋め込んでオリジナルアイコンを設置した時の最低限の設定※個別API取得方法も</a></p>
<p>head部分に以下のスクリプトを記述</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script src=&quot;https://maps.google.com/maps/api/js?key=****&quot;&gt;&lt;/script&gt;
</pre>
<p class="mb30">keyの箇所にはAPIコードを入れてください。<br />
取得方法は<a href="https://rockstream-jp.com/wordpress-simple-map-ng/" target="_blank">こちら</a>を参考にしてください。</p>
<p>bodyタグにスクリプトを読み込ませるための「onload=”initialize();」を記述。<br />スクリプトで取得するidを「access_map」にしています。ここは任意で設定して構いません。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;body onload=&quot;initialize();&quot;&gt;

&lt;div id=&quot;access_map&quot;&gt;&lt;/div&gt;

&lt;/body&gt;
</pre>
<div class="mb30"></div>
<p>CSSで縦横サイズを指定</p>
<pre class="brush: xml; title: ; notranslate">
#access_map{
     width: 100%;
     height:300px;
}
</pre>
<div class="mb30"></div>
<p>位置情報などの情報をhead内に記述</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script&gt;
  function initialize() {
  var latlng = new google.maps.LatLng(35.710403, 139.811076);
  var myOptions = {
    zoom: 18, /*拡大比率*/
    center: latlng, 
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById('access_map'), myOptions);
}
&lt;/script&gt;
</pre>
<p class="mb30">LatLng(35.710403, 139.811076)は経度、緯度です。Google Mapsで取得してください。<br />
なお、マーカーの位置をずらしたい場合には、上の経度、緯度の小数点以下を少しずつ変えると位置調整ができます。<br />
getElementById('access_map')で地図表示のためのid「access_map」を指定。</p>
<p>オリジナルマーカーを表示するためのスクリプト<br />マーカーを画像にするコードは以下</p>
<pre class="brush: xml; title: ; notranslate">
 var icon = new google.maps.MarkerImage('marker.png',
  new google.maps.Size(156,198),/*アイコンサイズ設定*/
  new google.maps.Point(0,0),  // origin
  new google.maps.Point(60,100) // anchor
  );
var markerOptions = {
  position: latlng,
  map: map,
  icon: icon,
  title: '場所名など'
};
</pre>
<p class="mb30">「marker.png」がマーカーの画像名です。<br />
画像が任意のディレクトリにある場合は、「/images/marker.png」のように記述します。</p>
<p>まとめると</p>
<p><pre class="brush: xml; title: ; notranslate">
&lt;script&gt;
  function initialize() {
  var latlng = new google.maps.LatLng(34.705629, 135.510118);
  var myOptions = {
    zoom: 18, /*拡大比率*/
    center: latlng, 
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById('access_map'), myOptions);

  //アイコンを作成
  var icon = new google.maps.MarkerImage('/images/marker.png',
    new google.maps.Size(104,120),/*アイコンサイズ設定*/
    new google.maps.Point(0,0),  // origin
    new google.maps.Point(60,100) // anchor
    );
  var markerOptions = {
    position: latlng,
    map: map,
    icon: icon,
    title: '場所名など'
  };
  var marker = new google.maps.Marker(markerOptions);
  //アイコン設定はここまで
}
&lt;/script&gt;
</pre>
<div class="mb30"></div>
<p>レスポンシブの場合、上記だけだとマーカーが中心からずれてしまいます。</br><br />
そこで、マーカーを中心に表示するコードを追加します。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script&gt;
  function initialize() {
  var latlng = new google.maps.LatLng(34.705629, 135.510118);
  var myOptions = {
    zoom: 18, /*拡大比率*/
    center: latlng, 
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById('access_map'), myOptions);

  //アイコンを作成
  var icon = new google.maps.MarkerImage('/images/marker.png',
    new google.maps.Size(104,120),/*アイコンサイズ設定*/
    new google.maps.Point(0,0),  // origin
    new google.maps.Point(60,100) // anchor
    );
  var markerOptions = {
    position: latlng,
    map: map,
    icon: icon,
    title: '場所名など'
  };
  var marker = new google.maps.Marker(markerOptions);
  //アイコン設定はここまで

  //マーカーを中心に表示
  google.maps.event.addDomListener(window, &quot;resize&quot;, function() {
    var center = map.getCenter();
    google.maps.event.trigger(map, &quot;resize&quot;);
    map.setCenter(center);
  });
}
&lt;/script&gt;
</pre>
<div class="mb30"></div>
<p>さらに吹き出しを追加する場合は、以下を追加します。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script&gt;
  function initialize() {
  var latlng = new google.maps.LatLng(34.705629, 135.510118);
  var myOptions = {
    zoom: 18, /*拡大比率*/
    center: latlng, 
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById('access_map'), myOptions);

  //アイコンを作成
  var icon = new google.maps.MarkerImage('/images/marker.png',
    new google.maps.Size(104,120),/*アイコンサイズ設定*/
    new google.maps.Point(0,0),  // origin
    new google.maps.Point(60,100) // anchor
    );
  var markerOptions = {
    position: latlng,
    map: map,
    icon: icon,
    title: '場所名など'
  };
  var marker = new google.maps.Marker(markerOptions);
  //アイコン設定はここまで

  //吹き出しを作成
   var contentString = '&lt;h3 class=&quot;map_title&quot;&gt;ココはとある場所&lt;/h3&gt;' +
                    '&lt;p class=&quot;map_comment&quot;&gt;位置に特に意味はありません&lt;/p&gt;';
   var infowindow = new google.maps.InfoWindow({
       content: contentString  //吹き出し内コメント
    });


    //吹き出しをオープン
    infowindow.open(map,marker);


    //マーカーをクリックすれば吹き出しが再表示
    google.maps.event.addListener(marker, 'click', function() {
        infowindow.open(map,marker);
    });

  //マーカーを中心に表示
  google.maps.event.addDomListener(window, &quot;resize&quot;, function() {
    var center = map.getCenter();
    google.maps.event.trigger(map, &quot;resize&quot;);
    map.setCenter(center);
  });
}
&lt;/script&gt;
</pre>
<p>吹き出しのCSSを設定します。</p>
<pre class="brush: xml; title: ; notranslate">
h3.map_title{
  text-align: center;
  font-size: 16px;
}
p.map_comment{
  padding:0 30px;
}
</pre>
<p><a href="https://rockstream-jp.com/javascript-google-maps-gray-scale/">次はGoogle Mapsを白黒で表示</a></p>
<div class="mb50"></div>
<p>
<a href="https://px.a8.net/svt/ejp?a8mat=2HO4KZ+75SPPU+50+2HH8I9" target="_blank"><br />
<img decoding="async" border="0" width="728" height="90" alt="" src="http://www21.a8.net/svt/bgt?aid=150611507433&wid=001&eno=01&mid=s00000000018015029000&mc=1"></a><br />
<img decoding="async" border="0" width="1" height="1" src="http://www19.a8.net/0.gif?a8mat=2HO4KZ+75SPPU+50+2HH8I9" alt=""></p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&amp;linkname=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&amp;linkname=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&amp;linkname=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fjavascript-google-maps-original-maker%2F&#038;title=%E3%80%90Javascript%E3%80%91Google%20Maps%E3%81%A7%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%92%E8%A1%A8%E7%A4%BA" data-a2a-url="https://rockstream-jp.com/javascript-google-maps-original-maker/" data-a2a-title="【Javascript】Google Mapsでオリジナルのマーカーを表示"></a></p>The post <a href="https://rockstream-jp.com/javascript-google-maps-original-maker/">【Javascript】Google Mapsでオリジナルのマーカーを表示</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></content:encoded>
					
					<wfw:commentRss>https://rockstream-jp.com/javascript-google-maps-original-maker/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Twitter】シェアボタンのリンク設定について</title>
		<link>https://rockstream-jp.com/twitter-sharebutton/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=twitter-sharebutton</link>
					<comments>https://rockstream-jp.com/twitter-sharebutton/#respond</comments>
		
		<dc:creator><![CDATA[zassy]]></dc:creator>
		<pubDate>Fri, 10 Feb 2017 10:43:48 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[ツィッター]]></category>
		<category><![CDATA[ホームページ制作]]></category>
		<category><![CDATA[Twitter]]></category>
		<guid isPermaLink="false">https://rockstream-jp.com/?p=3703</guid>

					<description><![CDATA[<p>備忘録です。 TwitterのシェアボタンにURL、テキスト、ハッシュタグを追加する方法です。 参考サイト ツイッターのシェアボタ...</p>
The post <a href="https://rockstream-jp.com/twitter-sharebutton/">【Twitter】シェアボタンのリンク設定について</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&amp;linkname=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&amp;linkname=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&amp;linkname=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&#038;title=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" data-a2a-url="https://rockstream-jp.com/twitter-sharebutton/" data-a2a-title="【Twitter】シェアボタンのリンク設定について"></a></p><p>備忘録です。</p>
<p>TwitterのシェアボタンにURL、テキスト、ハッシュタグを追加する方法です。</p>
<p>参考サイト<br />
<a href="http://kimizuka.hatenablog.com/entry/2014/09/19/000000" target="_blank">ツイッターのシェアボタンにハッシュタグを設定する</a><br />
<a href="http://blog.yuhiisk.com/archive/2015/10/12/twitter-share.html" target="_blank">今の時代必ず知っておくべき！！Twitterツイートボタンの設置・実装方法まとめ</a></p>
<p>シェアボタンのリンクの書き方です。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;http://twitter.com/share?url=&#x5B;シェアするURL]&amp;text=&#x5B;ツイート内テキスト]&amp;via=&#x5B;ツイート内に含むユーザ名]&amp;related=&#x5B;ツイート後に表示されるユーザー]&amp;hashtags=&#x5B;ハッシュタグ]&quot; target=&quot;_blank&quot;&gt;
</pre>
<p>シェアボタンのリンクサンプルです。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;https://twitter.com/share?url=http://www.https://rockstream-jp.com&amp;text=相模原のホームページ制作&amp;hashtags=Wordpress,ECCUBE,相模原&quot; target=&quot;_blank&quot;&gt;ボタン画像など&lt;/a&gt;
</pre>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&amp;linkname=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&amp;linkname=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&amp;linkname=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Ftwitter-sharebutton%2F&#038;title=%E3%80%90Twitter%E3%80%91%E3%82%B7%E3%82%A7%E3%82%A2%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6" data-a2a-url="https://rockstream-jp.com/twitter-sharebutton/" data-a2a-title="【Twitter】シェアボタンのリンク設定について"></a></p>The post <a href="https://rockstream-jp.com/twitter-sharebutton/">【Twitter】シェアボタンのリンク設定について</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></content:encoded>
					
					<wfw:commentRss>https://rockstream-jp.com/twitter-sharebutton/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【WordPress】htmlページにWPのRSSを表示する</title>
		<link>https://rockstream-jp.com/wordpress-html-wp-rss/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-html-wp-rss</link>
		
		<dc:creator><![CDATA[zassy]]></dc:creator>
		<pubDate>Thu, 24 Nov 2016 03:25:49 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[RSS]]></category>
		<guid isPermaLink="false">https://rockstream-jp.com/?p=1632</guid>

					<description><![CDATA[<p>備忘録です。 GoogleがAPIの配信を止めると使えなくなりそうです。参考程度でご覧ください。 htmlページにWordpres...</p>
The post <a href="https://rockstream-jp.com/wordpress-html-wp-rss/">【WordPress】htmlページにWPのRSSを表示する</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&amp;linkname=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&amp;linkname=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&amp;linkname=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&#038;title=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" data-a2a-url="https://rockstream-jp.com/wordpress-html-wp-rss/" data-a2a-title="【WordPress】htmlページにWPのRSSを表示する"></a></p><p>備忘録です。</p>
<p class="red">GoogleがAPIの配信を止めると使えなくなりそうです。参考程度でご覧ください。</p>
<p>htmlページにWordpressのRSSフィードを表示する方法です。</p>
<p>基本となるソースコードはこちらから取得できます。<br />
<a href="https://developers.google.com/feed/v1/devguide" target="_blank">https://developers.google.com/feed/v1/devguide</a></p>
<p>参考サイト<br />
<a href="http://buburinweb.wp.xdomain.jp/google-ajax-feed-api" target="_blank">[Google API] Google AJAX Feed APIによるRSSフィードの新着情報の表示</a></p>
<div>head内に下記ソースコードを追加</div>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.google.com/jsapi&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// JavaScript Document
google.load(&quot;feeds&quot;, &quot;1&quot;);
 
function initialize() {//initialize関数の定義
  var feedurl = 'http://buburinweb.wp.xdomain.jp/feed/';//RSSフィードのURLの定義
 
  var feed = new google.feeds.Feed(&quot;feedurl&quot;);
  feed.setNumEntries(5);//RSSフィードの表示数
  feed.load(dispfeed);
 
  function dispfeed(result){
    if (!result.error){
      var container = document.getElementById('feed');//divタグ内のid名と対応
      var htmlstr = '';//空の入れ物を用意
 
      htmlstr += '&lt;ul&gt;';//上書きではなく、入れ物に追加
      for (var i = 0; i &lt; result.feed.entries.length; i++) {//RSSフィードの数だけ繰り返す
        var entry = result.feed.entries&#x5B;i];//配列の定義
        var text = entry.contentSnippet.substr(0,100);
        htmlstr += '&lt;li class=\&quot;blog_list\&quot;&gt;';//liタグへのクラスの設定
        htmlstr +=  createDateString(entry.publishedDate);//日付の追加
        htmlstr += '&lt;a href=\&quot;' + entry.link + '\&quot;&gt;' + entry.title + '&lt;/a&gt; ';//entry内のリンクとタイトルによるリンクの追加
        htmlstr += '&lt;/li&gt;';
      }
      htmlstr += '&lt;/ul&gt;';
      container.innerHTML = htmlstr;
    }else{//エラーの場合の処理
       alert(result.error.code + ':' + result.error.message);
    }
  }
}
 
//日付表記を変換、月と日の2桁表示
function createDateString(publishedDate){//publishedDateを受け取ったcreateDateString関数の定義
  var pdate = new Date(publishedDate);
  var pday = pdate.getDate();
    if (pday &lt; 10) {pday = &quot;0&quot; + pday;}
  var pmonth = pdate.getMonth() + 1;
    if (pmonth &lt; 10) {pmonth = &quot;0&quot; + pmonth;}
  var pyear = pdate.getFullYear();
  var strdate = pyear + &quot;年&quot; + pmonth + &quot;月&quot; + pday + &quot;日&quot; ;
  return strdate;
}
google.setOnLoadCallback(initialize);
&lt;/script&gt;
</pre>
<div>bodyに下記コードを追加</div>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;feed&quot;&gt;&lt;/div&gt;
</pre>
<div>表示を整えるためのCSS</div>
<pre class="brush: xml; title: ; notranslate">
#feed {
    margin-bottom: 20px;
}
#feed li {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-text-overflow: ellipsis; /* Safari */
    -o-text-overflow: ellipsis; /* Opera */
    white-space: nowrap;
}
#feed li:last-child {
    border: none;
}
.blog_list, .blog_list_old {/**/
    list-style: none;
    padding: 5px 10px;
    color: #000000;
    border-bottom: #000000 1px dashed;
}
.blog_list a {
    margin-left: 10px;
    text-decoration: none;
}
.blog_list a:hover {
    color: red;
}
</pre>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&amp;linkname=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&amp;linkname=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&amp;linkname=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fwordpress-html-wp-rss%2F&#038;title=%E3%80%90WordPress%E3%80%91html%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%ABWP%E3%81%AERSS%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B" data-a2a-url="https://rockstream-jp.com/wordpress-html-wp-rss/" data-a2a-title="【WordPress】htmlページにWPのRSSを表示する"></a></p>The post <a href="https://rockstream-jp.com/wordpress-html-wp-rss/">【WordPress】htmlページにWPのRSSを表示する</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>【metaタグ】ブラウザの電話番号をSkypeアイコンにしない方法</title>
		<link>https://rockstream-jp.com/metatag-browser-skypeicon/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=metatag-browser-skypeicon</link>
		
		<dc:creator><![CDATA[zassy]]></dc:creator>
		<pubDate>Wed, 15 Jun 2016 00:55:47 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<guid isPermaLink="false">https://rockstream-jp.com/?p=1398</guid>

					<description><![CDATA[<p>Skypeは便利なんですけど、ブラウザの電話番号がSkypeアイコンになるのはちょっとどうかな？って思いますよね。 ブラウザのアド...</p>
The post <a href="https://rockstream-jp.com/metatag-browser-skypeicon/">【metaタグ】ブラウザの電話番号をSkypeアイコンにしない方法</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&#038;title=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" data-a2a-url="https://rockstream-jp.com/metatag-browser-skypeicon/" data-a2a-title="【metaタグ】ブラウザの電話番号をSkypeアイコンにしない方法"></a></p><p>Skypeは便利なんですけど、ブラウザの電話番号がSkypeアイコンになるのはちょっとどうかな？って思いますよね。</p>
<p>ブラウザのアドオンを無効にすればいいのですが、皆さんがそのように対応するかどうかはわかりません。</p>
<p>そこで、metaタグを以下のようにすると電話番号がSkypeのアイコンになるのを防ぎます。</p>
<p><pre class="brush: xml; title: ; notranslate">
&lt;meta name=&quot;SKYPE_TOOLBAR&quot; content=&quot;SKYPE_TOOLBAR_PARSER_COMPATIBLE&quot; /&gt;
</pre>
</p>
<p>以上、備忘録でした。</p>
<p>
<a href="https://px.a8.net/svt/ejp?a8mat=2HO4KZ+75SPPU+50+2HH8I9" target="_blank"><br />
<img decoding="async" border="0" width="728" height="90" alt="" src="http://www21.a8.net/svt/bgt?aid=150611507433&wid=001&eno=01&mid=s00000000018015029000&mc=1"></a><br />
<img decoding="async" border="0" width="1" height="1" src="http://www19.a8.net/0.gif?a8mat=2HO4KZ+75SPPU+50+2HH8I9" alt=""></p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&amp;linkname=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fmetatag-browser-skypeicon%2F&#038;title=%E3%80%90meta%E3%82%BF%E3%82%B0%E3%80%91%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%AE%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%92Skype%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3%E3%81%AB%E3%81%97%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" data-a2a-url="https://rockstream-jp.com/metatag-browser-skypeicon/" data-a2a-title="【metaタグ】ブラウザの電話番号をSkypeアイコンにしない方法"></a></p>The post <a href="https://rockstream-jp.com/metatag-browser-skypeicon/">【metaタグ】ブラウザの電話番号をSkypeアイコンにしない方法</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>【WordPress】WPの記事をHTML（PHP）で読み込む方法</title>
		<link>https://rockstream-jp.com/wordpress-wp-post-html/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-wp-post-html</link>
					<comments>https://rockstream-jp.com/wordpress-wp-post-html/#respond</comments>
		
		<dc:creator><![CDATA[zassy]]></dc:creator>
		<pubDate>Wed, 27 Jan 2016 02:58:07 +0000</pubDate>
				<category><![CDATA[投稿]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[HTML]]></category>
		<guid isPermaLink="false">https://rockstream-jp.com/?p=3654</guid>

					<description><![CDATA[<p>備忘録です。 WordPressの記事一覧をHTML(PHP)で読み込む方法についてです。 参考サイト WordPressの外にあ...</p>
The post <a href="https://rockstream-jp.com/wordpress-wp-post-html/">【WordPress】WPの記事をHTML（PHP）で読み込む方法</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&amp;linkname=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&amp;linkname=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&amp;linkname=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&#038;title=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" data-a2a-url="https://rockstream-jp.com/wordpress-wp-post-html/" data-a2a-title="【WordPress】WPの記事をHTML（PHP）で読み込む方法"></a></p><p>備忘録です。</p>
<p>WordPressの記事一覧をHTML(PHP)で読み込む方法についてです。</p>
<p>参考サイト<br />
<a href="http://wpcj.net/911" target="_blank">WordPressの外にあるHTMLで投稿情報を表示する </a></p>
<p>WordPressのテンプレートタグ(関数)が使用できるよう、wp-load.phpというファイルを読み込みます。<br />
下記のようなコードをHTMLファイルの先頭に配置してください。<br />
●●.phpに書くことと同じサーバ内にあることを前提としています。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?php require_once( dirname(__FILE__) . '/wp-load.php' ); ?&gt;
</pre>
<p>別のディレクトリにWordpressをインストールしている場合は下記になります。<br />
wpディレクトリにインストールしている場合</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?php require_once( dirname(__FILE__) . '/wp/wp-load.php' ); ?&gt;
</pre>
<p>記事一覧を読み込むタグを書きます。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!-- WPの記事を5件表示 --&gt;
&lt;?php query_posts( 'posts_per_page=5' ); ?&gt;
&lt;!-- ループ --&gt;
&lt;?php while ( have_posts() ) : the_post(); ?&gt;
	&lt;!-- 投稿 --&gt;
	&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
            &lt;!-- 投稿日時 --&gt;
            &lt;span class=&quot;post-date&quot;&gt;&lt;?php the_time( 'Y/m/d' ); ?&gt;&lt;/span&gt;
            &lt;!-- /投稿日時 --&gt;
            &lt;!-- タイトル(リンク付きタイトル) --&gt;
            &lt;span class=&quot;post-title&quot;&gt;
                &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
            &lt;/span&gt;
            &lt;!-- /タイトル --&gt; 
            &lt;!-- キャッチアップ画像 --&gt;
            &lt;p&gt;
            &lt;?php if ( has_post_thumbnail() ) :?&gt;
            &lt;?php the_post_thumbnail('thumbnail'); ?&gt;
            &lt;?php else: ?&gt;
            &lt;/p&gt;
            &lt;!-- /キャッチアップ画像 --&gt;
	&lt;/div&gt;
	&lt;!-- /投稿 --&gt;
&lt;?php endwhile; ?&gt;
&lt;!-- /ループ --&gt;
</pre>
<p>完成コード</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?php require_once( dirname(__FILE__) . '/wp-load.php' ); ?&gt;
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;meta charset=&quot;utf-8&quot;&gt;
	&lt;title&gt;テスト&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
 
&lt;?php query_posts( 'posts_per_page=5' ); ?&gt;
&lt;!-- ループ --&gt;
&lt;?php while ( have_posts() ) : the_post(); ?&gt;
	&lt;!-- 投稿 --&gt;
	&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
		&lt;!-- 投稿日時 --&gt;
		&lt;span class=&quot;post-date&quot;&gt;&lt;?php the_time( 'Y/m/d' ); ?&gt;&lt;/span&gt;
		&lt;!-- /投稿日時 --&gt;
		&lt;!-- タイトル(リンク付きタイトル) --&gt;
		&lt;span class=&quot;post-title&quot;&gt;
		    &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
		&lt;/span&gt;
		&lt;!-- /タイトル --&gt;
                &lt;!-- キャッチアップ画像 --&gt;
                &lt;p&gt;
                &lt;?php if ( has_post_thumbnail() ) :?&gt;
                &lt;?php the_post_thumbnail('thumbnail'); ?&gt;
                &lt;?php else: ?&gt;
                &lt;/p&gt;
                &lt;!-- /キャッチアップ画像 --&gt;
	&lt;/div&gt;
	&lt;!-- /投稿 --&gt;
&lt;?php endwhile; ?&gt;
&lt;!-- /ループ --&gt;
 
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>ちなみに●●.htmlでもphpが使えるようにすれば大丈夫です。方法は割愛します。</p>
<p>ショートコードを使うとContact Form 7も使えます。<br />
※Contact Form 7の問い合わせフォームを事前に用意してください。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?php echo do_shortcode( '&#x5B;contact-form-7 id=&quot;0&quot; title=&quot;お問い合わせフォーム&quot;]' ); ?&gt;
</pre>
<p>IDとtitleは設定したものに書き換えてください。</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&amp;linkname=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&amp;linkname=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&amp;linkname=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Frockstream-jp.com%2Fwordpress-wp-post-html%2F&#038;title=%E3%80%90WordPress%E3%80%91WP%E3%81%AE%E8%A8%98%E4%BA%8B%E3%82%92HTML%EF%BC%88PHP%EF%BC%89%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95" data-a2a-url="https://rockstream-jp.com/wordpress-wp-post-html/" data-a2a-title="【WordPress】WPの記事をHTML（PHP）で読み込む方法"></a></p>The post <a href="https://rockstream-jp.com/wordpress-wp-post-html/">【WordPress】WPの記事をHTML（PHP）で読み込む方法</a> first appeared on <a href="https://rockstream-jp.com">相模原市ホームページ制作 ロックストリーム</a>.]]></content:encoded>
					
					<wfw:commentRss>https://rockstream-jp.com/wordpress-wp-post-html/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
