skip to main | skip to sidebar

Topsy has just released a Wordpress plugin that gives you another retweet button. But, what if you can only work with a JavaScript widget? here is a small hack..

As you can see, they got 2 buttons..

A Tall(big) button

<script type="text/javascript" src="[twitter_name]&url=[post_url]"></script>
next, replace [twitter_name] with your Twitter username.
and [post_url] with your page URL.

And a Wide(small) button

<script type="text/javascript" src="[twitter_name]&url=[post_url]"></script>

Advantages of Topsy Retweet Button

Topsy is a Real time search and discovery engine that was launched in last May. and unlike TweetMeme retweet button. Topsy holds the data about tweets of your link forever!

Topsy offers free tweet analytics about your link & your site that currently TweetMeme will charge you for it! [ See analytics of my popular Twitter Friends widget]

It also shows any badges earned for your URL in TopLinks.(TOP 100, TOP 1k, TOP 5K ). TopLinks are collections of the top 100, 1000, and 5000 new links tweeted each day by influential people on Twitter.

By the way,

I created a jQuery plugin that gives you a Twitter trackbacks widget to setup on any blog especially for Non-Wordpress blogs.


Topsy has recently published the official JavaScript version of their retweet button. So, you would better check their code!


  1. Mia // November 14, 2009 at 11:11:00 AM GMT+11  

    hmmm...ok Mike , since this is somehwat ' better ' that the retweet button , why aren't you using it here ? hmmm? :)) just wondering :))

    P.S : I see this is not attracting as many 'anonymous' users as the Twitter Friends & Followers widget huh ? LOL :))

  2. Mike // November 14, 2009 at 11:26:00 AM GMT+11  

    I wrote the post as soon as I heard about Topsy new button.. but since that, I didn't really have the time to implement on my blog. I kinda tend to take things slowly when it comes to updating existing code!
    Yet, A good question.. I was expecting it, but not from you :) cause I was just replying to your comment on "Twitter friends widget" moments ago, LOL.

    Yes, as I think anonymous comments are not cool but ok!

  3. Anonymous // December 7, 2009 at 12:28:00 PM GMT+11  

    Great script idea! W

    hat if I wanted to use a dynamic URL? for example, If I want to allow the User to "retweet" the URL of the page that I am on?

    Also, do you know how to integrate a link shortener such as

  4. Mike // December 7, 2009 at 12:49:00 PM GMT+11  

    When you click "retweet" link of the Topsy button, your link is shortened in the middle of the way to Twitter!

    And this will get current page URL and create a big button:
    <script type="text/javascript">
       var url = encodeURIComponent(location.href);
       var nick= 'Mike_More';
       document.write('<' + 'script type="text/javascript" src="'+ nick +'&url='+ url +'"></'+'script>');

Post a Comment

Thank you for taking the time to comment..
* If you have a tech issue with one of my plugins, you may email me on mike[at]
More Tech Tips! | Technology tips on web development


Mike MoreWeb developer, jQuery plugin author, social media fan and Technology Blogger.
My favorite topics are: jQuery , Javascript , ASP.Net , Twitter , Google..
<connect with="me"> </connect>

Subscribe by email

Enter your email address:

or via RSS