码迷,mamicode.com
首页 > 其他好文 > 详细

分享功能

时间:2015-09-20 23:38:11      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:

<div class="bdsharebuttonbox" style="margin-left:110px;">
    <a href="#" class="bds_more" data-cmd="more">
    </a>
    <a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone">
    </a>
    <a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina">
    </a>
    <a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq">
    </a>
    <a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren">
    </a>
    <a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin">
    </a>
     <a title="分享到qq" href="#" class="bds_sqq" data-cmd="sqq">
    </a>
    
</div>
<script>
    var url = ‘${url}‘;
    window._bd_share_config = {
        "common": {
            "bdSnsKey": {},
            "bdText": "",
            "bdMini": "2",
            "bdPic": "",
            "bdStyle": "0",
            "bdUrl" : url,
            "bdSize": "16"
        },
        "share": {},
        /* "image": {
            "viewList": ["qzone", "tsina", "tqq", "renren", "weixin", "sqq"],
            "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)];
</script>

分享功能

标签:

原文地址:http://www.cnblogs.com/lei050/p/4824484.html

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