Add a retweet counter on your website with ReTweet.com

Add a retweet counter on your website with ReTweet.com: "
by

Some time ago I wrote a popular post about how to integrate into your web pages a Tweetmeme button that shows the number of retweets received by a single post or page of your blog or website. In the past days a new service, similar to Tweetmeme, has been launched. This service is ReTweet.com that shows popular links being retweeted across Twitter and provides a simple widget that shows the number of retweets received by your posts.

You can quickly integrate into your site this widget, which shows a button with a counter, just in some seconds using two lines of JavaScript code. There are two versions of the button, big and small:


If you are a Blogger user find this code:

<b:includable id='post' var='post'>
<div class='post hentry'>

...and if you want to add the big button add immediately after the last row this code:

<script type='text/javascript'>
url = '<data:post.url>';
</script>
<script type='text/javascript' src='http://www.retweet.com/static/retweets.js'></script>

If you prefer the smaller button use this code:

<script type='text/javascript'>
url = '<data:post.url>';
size = 'small';
</script>
<script type='text/javascript' src='http://www.retweet.com/static/retweets.js'></script>

If you use another blogging platform and want to add a ReTweet.com button on your website the only thing you have to change from the previous code is the value of the var url. Take a look at the official page here.

Related Posts
- Add a retweet counter on your posts with Tweetmeme


"
Source :