Skip to content

Instantly share code, notes, and snippets.

@dpapathanasiou
Created December 18, 2012 16:47
Show Gist options
  • Save dpapathanasiou/4329613 to your computer and use it in GitHub Desktop.
Save dpapathanasiou/4329613 to your computer and use it in GitHub Desktop.
Simple Social Media "Share" Buttons
<div><!-- social media share buttons -->
<a href="http://www.facebook.com/" onclick="window.location = 'http://www.facebook.com/share.php?u=' + encodeURIComponent(window.location); return false"><img src="http://i.imgur.com/aLnZg.png" alt="Share on Facebook" border="0" /></a>
<a href="http://twitter.com/" onclick="window.location = 'http://twitter.com/home/?status=' + encodeURIComponent(window.location); return false"><img src="http://i.imgur.com/oFrLG.png" alt="Tweet This" border="0" /></a>
<a href="http://www.linkedin.com/" onclick="window.location = 'http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(window.location); return false"><img src="http://i.imgur.com/mwHNU.png" alt="Share on LinkedIn" border="0" /></a>
<a href="https://plus.google.com/" onclick="window.location = 'https://plus.google.com/share?url=' + encodeURIComponent(window.location); return false"><img src="http://i.imgur.com/tzMMp.png" alt="Share on Google+" border="0" /></a>
<a href="http://www.reddit.com/submit" onclick="window.location = 'http://www.reddit.com/submit?url=' + encodeURIComponent(window.location); return false"><img src="http://i.imgur.com/7Xlq0.png" alt="Share on reddit" border="0" /></a>
<a href="http://pinterest.com/" onclick="window.location = 'http://pinterest.com/pin/create/button/?url=' + encodeURIComponent(window.location); return false"><img src="http://i.imgur.com/5grYc.png" alt="Share on Pinterest" border="0" /></a>
</div><!--/ social media share buttons -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment