码迷,mamicode.com
首页 > 微信 > 详细

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

时间:2016-05-08 20:06:27      阅读:353      评论:0      收藏:0      [点我收藏+]

标签:js   网站分享   网站分享到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空间,微信,微博等等。

标签:js   网站分享   网站分享到qq空间微信等   

原文地址:http://5912119.blog.51cto.com/5902119/1771177

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!