逛一些网站的时候经常会看到右侧挂个分享栏,让用户把自己的站分享到qq空间,微信等等,所以自己也研究了下,把他加到了自己的网站上,喜欢的可以先看看效果 http://www.quzhuanpan.com/ : [去转盘网][1]
,不多说了,直接上代码:
window._bd_share_config = {
“common” : {
“bdSnsKey” : {},
“bdText” : “”,
“bdMini” : “2”,
“bdMiniList”:[“qzone”,”sqq”,”weixin”,”tsina”,”tqq”,”douban”,”renren”,”bdxc”,”kaixin001″,”bdysc”,”mshare”,”tqf”,”ty”,”tieba”,”bdhome”,”thx”,”ibaidu”,”meilishuo”,”mogujie”,”diandian”,”huaban”,”duitang”,”hx”,”fx”,”youdao”,”sdo”,”qingbiji”,”people”,”xinhua”,”mail”,”isohu”,”yaolan”,”wealink”,”iguba”,”fbook”,”twi”,”linkedin”,”h163″,”copy”,”print”],
“bdPic” : “http://www.quzhuanpan.com/logo/zhuanpansousou.png”,
“bdStyle” : “0”,
“bdSize” : “16”
},
“slide” : {
“type” : “slide”,
“bdImg” : “1”,
“bdPos” : “right”,
“bdTop” : “190”
}
};
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)];