百度網頁分享js代碼
阿新 • • 發佈:2017-06-04
fonts art bds tee content ext lis 好友 人人
2、大圖標
1、小圖標
<div class="bdsharebuttonbox"> <a href="#" class="bds_qzone" data-cmd="qzone"></a> <a href="#" class="bds_tsina" data-cmd="tsina"></a> <a href="#" class="bds_tqq" data-cmd="tqq"></a> <a href="#" class="bds_renren" data-cmd="renren"></a> <a href="#" class="bds_weixin" data-cmd="weixin"></a> <a href="#" class="bds_weixin" data-cmd="weixin"></a> <a href="#" class="bds_more" data-cmd="more"></a> <a class="bds_count" data-cmd="count"></a> </div> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName(‘head‘)[0]||body).appendChild(createElement(‘script‘)).src=‘http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=‘+~(-new Date()/36e5)];</script>
2、大圖標
<div class="bdsharebuttonbox"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空間"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到騰訊微博"></a><a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人網"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_tqf" data-cmd="tqf" title="分享到騰訊朋友"></a><a href="#" class="bds_kaixin001" data-cmd="kaixin001" title="分享到開心網"><a href="#" class="bds_ty" data-cmd="qzone" title="分享到天涯社區"></a><a href="#" class="bds_bdxc" data-cmd="bdxc" title="分享到百度相冊"></a><a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣網"></a><a href="#" class="bds_mshare" data-cmd="mshare" title="分享到一鍵分享"></a><a href="#" class="bds_more" data-cmd="more"><a class="bds_count" data-cmd="count"></a></div> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"32"},"share":{},"image":{"viewList":["qzone","tsina","tqq","sqq","renren","weixin","tqf","kaixin001","bdxc","douban","mshare"],"viewText":"分享到:","viewSize":"32"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","sqq","renren","weixin","tqf","kaixin001","bdxc","douban","mshare"]}};with(document)0[(getElementsByTagName(‘head‘)[0]||body).appendChild(createElement(‘script‘)).src=‘http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=‘+~(-new Date()/36e5)];</script>
3、參考地址:http://share.baidu.com/
百度網頁分享js代碼