cialis online pharmacy generic xenical cheap cialis online cialis generic viagra online in canada buy cheap levitra online cialis without a perscription order viagra uk no prescription flagyl cheap generic levitra buying viagra in the uk cheap viagra approved cialis deltasone online buy viagra online without prescription non prescription cialis buy orlistat uk buy cialis in india prednisone 60 mg female viagra online buy viagra without prescription celebrex prescriptions buy cialis canada best prices viagra alternative to prednisone cheapest generic levitra levitra 5mg cheap viagra cialis on line buy xenical without prescription online accutane canadian health care prednisone no prescreption viagra online generic female viagra europe buy cialis low price cheap india viagra

How To Create A Basic Social Sharing Button

If you’re looking for a cool way to implement some refreshing share buttons for your site then you’re in luck — today’s post is just for you! This featured tutorial shared by Stacy Summers from will show you how to create a basic and elemental pair of buttons that you can use to share your site’s contents.

Oh, and if you consider yourself a little rusty in the web programming language department, do not fret, for this tutorial only requires minimal coding. It only involves 2 steps, which is copy/pasting an HTML code and creating a .js file.

Here are the steps:

  • Copy/paste the following snippet below into your HTML file.
<a onclick="Share.facebook('URL','TITLE','IMG_PATH','DESC')"> {sharing is sexy}</a>
<a onclick="Share.twitter('URL','TITLE')"> {sharing is sexy}</a>
<a href="
URL&p%5Bimages%5D%5B0%5D=IMG_PATH" target="_blank" onclick="return;">{sharing is sexy}</a>
<a href="
=URL" target="_blank" onclick="return">{sharing is sexy}</a>     

  • Create a .js file and copy/paste this in.
Share = {
facebook: function(purl, ptitle, pimg, text) {
url = '';
url += '&p[title]=' + encodeURIComponent(ptitle);
url += '&p[summary]=' + encodeURIComponent(text);
url += '&p[url]=' + encodeURIComponent(purl);
url += '&p[images][0]=' + encodeURIComponent(pimg);
twitter: function(purl, ptitle) {
url = '';
url += 'text=' + encodeURIComponent(ptitle);
url += '&url=' + encodeURIComponent(purl);
url += '&counturl=' + encodeURIComponent(purl);
popup: function(url) {,'','toolbar=0,status=0,width=626, height=436');

  • You can use the following share buttons here or better yet, check out Stacy’s post to get more button choices.

Enjoy your new buttons and have a nice day!

Related Posts

Customizing CSS Buttons with Pictogram Icons

Add Clippy.js To Your Website For Instant MSWord Nostalgia

David Spillane Resigns As Facebook CAO

Colorize Your Source Code With Sunlight