« MySQL ユーザコンファレンス 2008 第 2 日目 | Main | remedie - media center application »

04 November 2008

はてなブックマークカウンターを TypePad に設置

やっぱり自分のブログがブックマークされているかって気になりますよね。はてなブックマークではブログの URL を渡すだけで画像でその URL を含むブックマークが何件あるか返してくれるサービスがあります。こちらでやり方が紹介されています。

さて、このやり方は HTML を直接編集できるサービスに限定されます。TypePad でも上級者テンプレートを利用すれば MT タグを駆使して手軽にはてなブックマークカウンターを設置できるわけですが、私は別のやり方で対応する方法をご紹介します。

前にご紹介しました「jQueryライブラリを使う」ウィジェットを導入しつつ、TypeList にスクリプトを追加することで、上級者テンプレートを使わなくてもはてなブックマークカウンターが設置できるようになります。

まずは「jQueryライブラリを使う」ウィジェットを導入してください。こちらのページから jQuery を使うウィジェットをインストールできます。

次に TypeList の「メモ」または「リンク」のメモ欄に以下の javascript を貼付けます。(「リンク」の TypeList を使う場合はそのリストの設定ページで「メモをテキストとして表示」を選択しておいてください)

<script type="text/javascript">
$("h1").append('<div class="hatena-entrylist"><a href="http://b.hatena.ne.jp/entrylist?url='+ $("h1 a").attr("href") +'"><img src="http://b.hatena.ne.jp/bc/de/'+$("h1 a").attr("href")+'" class="bcounter" alt="この日記のはてなブックマーク数" title="この日記のはてなブックマーク数"/></a></iv>');
$(".hatena-entrylist").css("margin-left", "10px").css("display", "inline");
</script>

これで完了です。ブログを見ますと、ブログのタイトルの横にはてなブックマークカウンターが表示されたと思います。ブックマークの件数が全てではないですが、ブックマークの件数が増えることがブログを続けるモチベーションにつながるときもあります。どうぞご利用ください。

seealso:

TrackBack

TrackBack URL for this entry:
http://bb.lekumo.jp/t/trackback/517129/31022993

Listed below are links to weblogs that reference はてなブックマークカウンターを TypePad に設置:

Comments

discussion on the topic of this article at this place at this blog, I have read all that, so at this time me also commenting here.| I am sure this paragraph has touched all the internet people, its really really pleasant post on building up new website.| Wow, this piece of writing is nice, my sister is analyzing these things, so I am going to tell her.| bookmarked!!, I really like your site!| Way cool! Some extremely valid points! I appreciate you nfl jerseys wholesale

Thanks , I've just been searching for information approximately this subject for a long time and yours is the greatest I've discovered till now. However, what about the conclusion? Are you sure about the source? sex toy - https://th-th.facebook.com/PowerBankJJ

Сoach Wallet Ebbay (ReƄekah) The discardгed fluid, urine, flows iin the κidneys to thee bladder, a storage organ.One enters "Buenos Aires" for yоur location, colliding with typically the "Buscar" switch. Cοach Wristlets On Sale The Granhd Rapids Brewery bottled in this particular location fгom 1935 to 1946, lߋϲaql historians sау, and Gebel Beer іs created there fгom 1946 to 1957.Wong, the pіnch runner, did the true secret pinch ruunners can't do.

I don't know if it's just me or if everybody else encountering issues with your site. It seems like some of the written text within your content are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them as well? This may be a issue with my web browser because I've had this happen before. Kudos

There is certainly a great deal to find out about this subject. I really like all the points you made.

I have been surfing on-line more than 3 hours as of late, but I by no means discovered any fascinating article like yours. It is pretty price sufficient for me. In my opinion, if all site owners and bloggers made just right content material as you probably did, the internet shall be a lot more useful than ever before.

It's impressive that you are getting thoughts from this post as well as from our dialogue made at this time.

After looking at a handful of the blog articles on your web page, I truly appreciate your way of blogging. I saved it to my bookmark site list and will be checking back soon. Take a look at my web site as well and tell me what you think.

I always spent my half an hour to read this blog's articles or reviews everyday along with a cup of coffee.

Post a comment

Access Ranking

Powered by Six Apart
Sponsored links