TweetmemeのReTweetボタンをWordPressに設置する
Posted on | 2010/1/13 23:21:59 | Comments
ブログにReTweetボタンを設置したいなと思いまして、こちらのブログを参考に設置してみました。
ブログにRetweetボタンを設置できるスクリプト | CREAMU
スクリプトはこんな感じ。
<div class="tweetmeme">
<script type="text/javascript">
tweetmeme_source = ‘kosuk’;
tweetmeme_url = ‘<?php the_permalink(); ?>’;
tweetmeme_service = ‘bit.ly’;
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
CSSはマイナスマージン指定して、タイトルの左側に浮いているように設置してみました。
.tweetmeme {
margin-left:-68px;
margin-top:-3px;
float:left;
background-color:none;
}
おそらく、トップページだと、このスクリプトを3040回呼び出している形になるので、表示速度的に悩ましいのですが、面白い機能なので、ちょっとしばらく使ってみます。

