最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
js 调用百度分享功能
时间:2017-05-07 编辑:简简单单 来源:一聚教程网
效果图:
图(1)未展开
图(2)展开效果
代码如下:
代码如下 | 复制代码 |
window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "32" }, "share": {}, "image": { "viewList": ["qzone", "tsina", "tqq", "renren", "weixin"], "viewText": "分享到:", "viewSize": "16" }, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren", "weixin"] } }; 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)]; |
相关文章
- 基于JS实现仿百度百家主页的轮播图效果 05-24
- js实现百度搜索提示框 03-14
- JS实现仿百度文库评分功能 01-14
- js像百度关键走向效果 06-15
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31