百度分享已经不能用,这个做记录,随时复制使用
<html>
<head>
<title>百度分享</title>
<meta charset="utf-8"/>
</head>
<body>
<div class="bdsharebuttonbox" data-tag="share_1">
<a class="bds_tsina" data-cmd="tsina"></a>
<a class="bds_sqq" data-cmd="sqq"></a>
<a class="bds_qzone" data-cmd="qzone"></a>
<a class="bds_weixin" data-cmd="weixin"></a>
<a class="bds_more" data-cmd="more">更多</a>
<a class="bds_count" data-cmd="count"></a>
</div>
<script>
window._bd_share_config = {
common : {
bdText : 'Custom share content',
bdDesc : 'Custom share summary',
bdUrl : 'Custom share URL address',
bdPic : 'Custom share pictures'
},
share : [{
"bdSize" : 24
}],
slide : [{
bdImg : 0,
bdPos : "right",
bdTop : 100
}],
image : [{
viewType : 'list',
viewPos : 'top',
viewColor : 'black',
viewSize : '24',
viewList : ['qzone','tsina','huaban','tqq','renren']
}],
selectShare : [{
"bdselectMiniList" : ['qzone','tqq','kaixin001','bdxc','tqf']
}]
}
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)];
</script>
</body>
</html>