Skip to content

Instantly share code, notes, and snippets.

@sproutventure
Created August 13, 2008 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sproutventure/5245 to your computer and use it in GitHub Desktop.
Save sproutventure/5245 to your computer and use it in GitHub Desktop.
ShareThis code to change ShareThis image
========================
HEADER CODE
========================
<script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=email%2Cweb&amp;charset=utf-8&amp;services=facebook%2Cmyspace%2Cdelicious%2Cstumbleupon%2Cgoogle_bmarks%2Cyahoo_bmarks%2Cyahoo_myweb%2Cwindows_live%2Cfriendfeed%2Creddit&amp;style=default&amp;publisher=cd3fa0ae-1fcf-48eb-9e10-509b3e3977f5&amp;headerbg=%23ee3a43&amp;inactivebg=%23c41230&amp;inactivefg=%23ffffff&amp;linkfg=%23474847;button=false"></script>
<script language="javascript" type="text/javascript">
var object = SHARETHIS.addEntry({
url: document.location + '?cmpid=sharethis',
title:'share',
summary: 'Sharing with a friend.'},
{button:false});
//Either use CSS to modify the ID "share" or add to the below document.write statement
document.write('<span id="share"><a href="javascript:void(0);"><img src="http://lib.store.yahoo.net/lib/allheart/footer-share-icon.png" border="0"/></a><a href="javascript:void(0);">Share This</a>');
var element = document.getElementById("share");
object.attachButton(element);
</script>
========================
END HEADER CODE
========================
========================
BODY/LINK CODE
========================
<div id="share">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment