如何添加社交分享按钮?

时间:2015-10-25 06:19:11

标签: button sharing social currency

目前我正在使用AddThis生成的社交分享按钮。 但我想在我的网站上使用相同的共享按钮而不添加其他网站的代码。

那么,如何开发相同的分享按钮?

Screenshot of Social Sharing Button

1 个答案:

答案 0 :(得分:3)

这样的事情?

<div>
<a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.sahilonline.org%2FnewsDetails.php%3Fcid%3D3%26nid%3D37477&p[title]=BJP got 'Modi oxygen,' will last till popularity remains:Sena&display=popup">
<img src="http://www.sahilonline.org/images/share-f.jpg" width="100" height="30" alt="Share on Facebook"></a>
&nbsp;
<a href="https://twitter.com/intent/tweet?text=BJP got 'Modi oxygen,' will last till popularity remains:Sena&url=http%3A%2F%2Fwww.sahilonline.org%2FnewsDetails.php%3Fcid%3D3%26nid%3D37477&related=">
<img src="http://www.sahilonline.org/images/share-t.jpg" width="100" height="30" alt="Share on Twitter"></a>
&nbsp;
<a href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());">
<img alt="Pin it" src="http://www.sahilonline.org/images/share-p.jpg"></a>
&nbsp;
<a href="postComment.php?cid=3&amp;nid=37477"><img src="http://www.sahilonline.org/images/share-c.jpg" width="100" height="30" alt="Leave Your Comment"></a>&nbsp;<a  href="email.php?cid=3&amp;nid=37477">
<img src="http://www.sahilonline.org/images/share-e.jpg" width="100" height="30" alt="Share via Email"></a>&nbsp;<a href="https://plus.google.com/share?url=http%3A%2F%2Fwww.sahilonline.org%2FnewsDetails.php%3Fcid%3D3%26nid%3D37477">
<img src="http://www.sahilonline.org/images/share-g.jpg" width="100" height="30" alt="Google Plus"></a>&nbsp;
</div>