<?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>Syunichiro.com &#187; twitter</title>
	<atom:link href="http://syunichiro.com/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://syunichiro.com</link>
	<description>佐野隼一朗のブログ</description>
	<lastBuildDate>Fri, 30 Jul 2010 10:21:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://syunichiro.com/tag/twitter/feed/" />
		<item>
		<title>昔のブログ記事とtwitterAPI</title>
		<link>http://syunichiro.com/diary257/</link>
		<comments>http://syunichiro.com/diary257/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:12:56 +0000</pubDate>
		<dc:creator>Syunichiro</dc:creator>
				<category><![CDATA[日記]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[WORDPRESS]]></category>
		<category><![CDATA[ウェブ]]></category>

		<guid isPermaLink="false">http://syunichiro.com/?p=257</guid>
		<description><![CDATA[
・エキサイトを見たら昔のブログ記事が残っていたのでこちらに移動してみた。特に面白くないのだが、記録として残しておく。とりあえず2005年11月まで移行完了。

・twitterを始めてみたので、やってる方いたら登録お願 [...]]]></description>
			<content:encoded><![CDATA[<p>
・エキサイトを見たら昔のブログ記事が残っていたのでこちらに移動してみた。特に面白くないのだが、記録として残しておく。とりあえず2005年11月まで移行完了。<br />
<br />
・<a href="http://twitter.com/syunichiro" target="_blank">twitter</a>を始めてみたので、やってる方いたら登録お願いします。あと、このブログの右上にある一言コメントはtwitterのAPIを使ってます。<br />
<br />
ソースはこんな感じ。いろんなサイトからコピペして改造してみた。<br />
以下ソース<br />
<br />
CSS<br />
</p>
<blockquote><p>#twitter_div{<br />
width:600px;<br />
float:right;<br />
font-size:1.4em;<br />
margin-top: 25px;<br />
margin-right: 0px;<br />
margin-bottom: 0px;<br />
margin-left: 0px;<br />
}<br />
<br />
#twitter_update_list {<br />
text-align:right;<br />
list-style-type: none;<br />
list-style-position: inside;<br />
}</p></blockquote>
<p>
ヘッド内にJavascript<br />
</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
<br />
function twitterCallback(obj) {<br />
var id = obj[0].user.id;<br />
document.getElementById(&#8216;my_twitter_status&#8217;).innerHTML = obj[0].text;<br />
document.getElementById(&#8216;my_twitter_status_time&#8217;).innerHTML = relative_time(obj[0].created_at);<br />
}<br />
&lt;/script&gt;</p></blockquote>
<p>
表示箇所に<br />
</p>
<blockquote><p>&lt;div id=&#8221;twitter_div&#8221;&gt;<br />
&lt;h2 style=&#8221;display: none;&#8221; &gt;Twitter Updates&lt;/h2&gt;<br />
<br />
&lt;ul id=&#8221;twitter_update_list&#8221;&gt;&lt;/ul&gt;<br />
&lt;a href=&#8221;http://twitter.com/ユーザー名&#8221; id=&#8221;twitter-link&#8221; style=&#8221;display:block;text-align:right;background:#fff;&#8221; target=&#8221;_blank&#8221;&gt;&lt;img src=&#8221;アイコンの画像アドレス&#8221;&gt;&lt;/a&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://twitter.com/javascripts/blogger.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://twitter.com/statuses/user_timeline/ユーザー名.json?callback=twitterCallback2&amp;amp;count=1&#8243;&gt;&lt;/script&gt;<br />
<br />
&lt;/div&gt;</p></blockquote>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://syunichiro.com/diary257/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://syunichiro.com/diary257/" />
	</item>
	</channel>
</rss>
