Adding Web Share Widgets to Your Site

, ,
Want to master JavaScript in a month? Commit. Buy Xah JavaScript Tutorial. You also get Xah HTML Tutorial and Xah CSS Tutorial.

These days, there are lots of websites that have tiny icons that allow readers to add the article to blog sites, or bookmark sites, social networking sites, such as Facebook, blogger, Twitter, delicious, digg, stumble upon, etc. It looks like this:

Bookmark and Share

Sites that show such share widget include,,,, You can just go to and click on news articles to arrive at a site and look at their share widget. Here's some example of tech sites that use such share widget:,,,, etc.

Is there a sharing widget plug-in for web masters?

If you look at their sharing widgets on major sites, looks like most are home cooked.

Adding A Share Widget To Your Website

Here are some share widget services i found:

I tried the one. It's quite simple. In 1 min you get this code:

<a class="addthis_button"
<img src=""
 width="125" height="16" alt="Bookmark and Share" style="border:0"/></a>
<script type="text/javascript"

Cook Your Own Share Widget

Actually it is easy to create your own links. All the little icons you can pull. Most if not all these social networking sites have API that lets you submit sites, pretty much just like this: 〔http://somebookmark .com/submit?url=〕, though the URL after the question mark needs to be Percent encoded.

Here's the raw HTML you need to cook you own. The following shows some examples.

icon icon icon icon icon icon icon

If your favorite site is not shown above, the quickest way to find out the submit URL syntax is by using one of the share widget and look at the URL.

Should Your Site Have A Share Widget?

One decision i have to make is whether my site should have such share widgets. It might be just a temporary fad for teens. Blogs began with such a perception, but today they are important tool in communication with major world impact. Web syndication (RSS/Atom) had such a perception too, when it began in about 1997, but is today a widely used standard.

Majority of people who use the web probably do not use any of the social networking or blog or bookmark sites. But a minority, probably hundreds of millions, do. Having a link right there to let them talk about a article is convenient. So, from a tool point of view, it is really good to have such a share widget. A important benefit for the web site owner is that it certainly does increase your traffic, when your article is discussed about in some site.

blog comments powered by Disqus