首页 > Web开发 > 详细

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

时间:2016-05-08 16:15:51      阅读:222      评论: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空间微信等   

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
haoning747
加入时间:2016-05-04
  关注此人  发短消息
文章分类
haoning747”关注的人------(0
haoning747”的粉丝们------(0
© 2014 bubuko.com 版权所有 鲁ICP备09046678号-4
打开技术之扣,分享程序人生!
             

鲁公网安备 37021202000002号