Using your own image for ShareThis Widget
The ShareThis widget is pretty handy for getting your site viral but it sometimes doesn’t always fit into your design. ShareThis has the option to use your own image to open the widget window. To save you time trying to learn all of the ShareThis API, I will just show you what I did.
First you need to go to the ShareThis Website to get the button code. Go through the steps and put that code in the head section of your html.
Now the code I used to change it to use my image for the button:
var object = SHARETHIS.addEntry({ title:'sharethis', summary: 'Sharing My Website'}, {button:false}); document.write('<span><a href="void(0);"><img src="/new/images/share.png" style="margin-top: 17px;margin-left:-20px" /></a></span>') var element = document.getElementById("share"); object.attachButton(element);
Copy and paste that inside a javascript tag and just change the url of the img to yours in the document.write line.























