twitter边栏

今天趁着吃午饭的时间,把twitter 边栏恢复了。参考地址:http://www.lizhenglin.com/blog/?p=643

然而,上面链接之中给出的api出了问题,可以按照同样的思路,加入下面代码

代码:

<div id=”twitter_div”>

<h2 class=”sidebar-title”>Twitter的更新</h2> <ul id=”twitter_update_list”></ul> <a href=”http://twitese.appspot.com/info?id=llj098″ id=”twitter-link” style=”display:block;text-align:right;”>跟随我的Twitter</a> </div>

<script type=”text/javascript” src=”http://www.lizhenglin.com/Twitter/Twitter.js”></script> <script type=”text/javascript” src=”http://wp.php0h.com/api/statuses/user_timeline/llj098.json?callback=twitterCallback2&amp;count=10″></script>

这里把所有的 llj098 换成你的用户名,然后将http://www.lizhenglin.com/Twitter/Twitter.js 文件下载,换成你自己的地址。

更新:http://wp.php0h.com 这个站点的API已经损坏,可以Google 搜索一下:Twitter api ,或者直接用:

<script type=”text/javascript” src=”http://www.twitk.com/k/statuses/user_timeline/llj098.json?callback=twitterCallback2&amp;count=10″></script>  代替

This entry was posted in 未分类 and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).