Recommended:

  • phpclasses.org
  • jsclasses.org
  • jsmag.com
  • siteapps.com
  • View our reviews on Hot Scripts
  • JS Tutorial
  • scripts.com
  • securesignup.com




Recent Comments

Powered by Disqus




Back to articles

ShareThis - Sharing Widget

There are so many social channels, that its hard to keep up to date with them. Everytime something changes, you need to change it in your website. That's why most of us use only popular social channels like twitter, facebook etc. But doing that you might be missing on a lot of targeted traffic.

ShareThis widget allows you to provide option for visitors to share your website on more than 50 different social channels. And it can be done using single javascript file. Plus you can monitor statistics of sharing. And the best of all, it's FREE. Just go to ShareThis, create an account, get publisher key and use this code to place Sharing widget on your website.

<html>
<head>
</head>
<body>
<!------------------------
    Create span elements with classes like:
    st_sharethis_vcount
    where:
        st - ShareThis prefix
        sharethis - social channel name
            Possible values:
                sharethis - must be included to use all other social channels
                twitter
                email
                gbuzz
                yahoo
                facebook
                fblike
                plusone
        vcount - type icon
            Possible values:
                vcount - vertical count
                hcount - horizontal count
                large - large icons
                (none) - small icons
------------------------->
<span  class='st_twitter_vcount' displayText='Tweet'></span>
<span  class='st_email_vcount' displayText='Email'></span>
<span  class='st_facebook_vcount' displayText='Facebook'></span>
<span  class='st_sharethis_vcount' displayText='ShareThis'></span>

<!------------------------
    Share this script code 
    Remember to enter 
    your publisher key
------------------------->
<script type="text/javascript">
    /***************************
    * TO USE OAUTH OR CLASSIC WIDGET
    * Possible values:
    *   true - OAUTH WIDGET
    *   false - CLASSIC WIDGET
    ***************************/
    var switchTo5x=false;
</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js">
</script>
<script type="text/javascript">
stLight.options({publisher:'YOUR-PUBLISHER-KEY'});
</script>
</body>
</html>

You may also be interested in:

Powered by BlogAlike.com

blog comments powered by Disqus