AspBucket offers ASP.NET, C#, VB, Jquery, CSS, Ajax, SQL tutorials. It is the best place for programmers to learn

Wednesday 6 April 2016

Create custom social sharing buttons without load any external java script.

In this blog article discuss how to create social sharing buttons without using any external java script code. Most of coders are using external java script it will increase burden on server. Let's start discuss how to do it without external java script code.
.
Use simple anchor tag for share buttons

Facebook

<a href="http://www.facebook.com/sharer.php?u=your_url&amp;t=your_title" title="Share on Facebook."></a>

Twitter

<a href="http://twitter.com/home/?status=your_title - your_url" title="Tweet this!"></a>

Reddit

<a href="http://www.reddit.com/submit?url=your_url>&amp;title=your_title ?>" title="Vote on Reddit"></a>

Stumbleupon


<a href="http://www.stumbleupon.com/submit?url=your_url&amp;title=your_title" title="Stumble it"></a>

Linkdin


<a href="http://www.linkedin.com/shareArticle?mini=true&amp;title=your_title&amp;url=your_url" title="Share on LinkedIn"></a>

Google Plus


<a href="https://plus.google.com/share?url=your_url" onclick="javascript:window.open(this.href,
  '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"></a>

Pinterest


<a href="http://pinterest.com/pin/create/button/?url=your_url&media=your_thumbnail_url"></a>

replace your_url with sharing url & your_title with title of post.

0 comments :

Post a Comment

  • Popular Posts
  • Comments