Share with Baidu: Http://share.baidu.com/code/advance#toid
Cases:
Html:
<div class= "Bdsharebuttonbox" data-tag= "share_1" ><div style= ' background: #252525; color:white;width:32px; ' > Share </div>//Here is the content you added <a class= "Bds_tsina" data-cmd= "Tsina" ></a><br/><a class= "Bds_ Weixin "data-cmd=" Weixin "></a><br/><a class=" Bds_qzone "data-cmd=" Qzone "href=" # "></a> <BR/></div>
Css:
. bdsharebuttonbox{//You can use CSS to customize the share button position:fixed;right:0;top:100px;}
Js:
Window._bd_share_config = {//Add here to share specific settings common: {//Place common settings here Bdtext: ' New media poll ', Bddesc: ' New Media ', Bdurl: '/http ' Nm.abbs.com.cn/home/vote/index.html ', Bdpic: '//'},share://Place the Share button setting {"Bdsize": 32}}//The following is the JS loading section with (document ) 0[(getElementsByTagName (' head ') [0]| | Body). AppendChild (createelement (' script ')). src= ' Http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion = ' +~ (-new Date ()/36e5)];
One-click Sharing to each SNS plugin