简体   繁体   中英

How to add Social Sharing buttons?

Currently I am using the social sharing button that is generated by AddThis. But I want to use the same sharing buttons on my website without adding other site's code.

So, how to develop the same sharing button?

社交分享按钮的屏幕截图

something like this ?

 <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> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM