教你如何自定义百度分享插件以及bshare分享插件的分享按钮
百度分享插件
<style> .userStyle{ width:100%; height:30px; display:block; } .userStylespan.bds_more{ background:url("/wap/images/rfhui1.jpg")no-repeatscroll05pxrgba(0,0,0,0)!important; } </style> <divclass="userStyle"> <!--BaiduButtonBEGIN--> <divid="bdshare"class="bdshare_tbds_toolsget-codes-bdshare"> <spanclass="bds_more"></span> </div> <scripttype="text/javascript"id="bdshare_js"data="type=tools"></script> <scripttype="text/javascript"id="bdshell_js"></script> <scripttype="text/javascript"> document.getElementById("bdshell_js").src="http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion="+Math.ceil(newDate()/3600000); </script> <!--BaiduButtonEND--> </div>
bShare分享插件
<divclass="bsync-customicon-medium-blue"> <atitle="一键分享到各大微博和社交网络"class="bshare-bsync"onclick="javascript:bShare.more(event);returnfalse;"></a> </div> <aclass="bshareDiv"href="http://www.bshare.cn/share">分享按钮</a> <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#uuid=773faa5d-cee1-4696-9c99-d400a5d7a1c1&style=999&img=http%3A%2F%2Fjingguan.365use.com%2Fwap%2Fimages%2Frfhui1.jpg&h=20&w=23&mdiv=0&pop=-1&bp=qqmb,bsharesync,sinaminiblog,qzone,189share,sohuminiblog,renren,xinhuamb,tianya,shouji,ifengmb,neteasemb,qqxiaoyou,kaixin001,weixin,douban,qqim"> </script>