如何将自己的网站分享到QQ空间,微信,微博等等

逛一些网站的时候经常会看到右侧挂个分享栏,让用户把自己的站分享到qq空间,微信等等,所以自己也研究了下,把他加到了自己的网站上,喜欢的可以先看看效果去转盘网,不多说了,直接上代码:

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)];

技术在于分享,开源,去转盘不吝啬任何技术,本人建个qq群,欢迎大家一起交流技术, 群号:512245829 喜欢微博的朋友关注:转盘娱乐即可

你可能感兴趣的:(javascript,分享组件)