自定义百度分享的分享按钮

代码很简单,主要是修改了下百度分享的部分代码,小伙伴们自己对比下。

复制代码 代码如下:


<div><b>分享到:&nbsp;</b></div>
    <div>
        <div><a href="#" data-cmd="more"></a><a title="分享到新浪微博" href="#" data-cmd="tsina"></a><a title="分享到腾讯微博" href="#" data-cmd="tqq"></a><a title="分享到QQ空间" href="#" data-cmd="qzone"></a><a title="分享到微信" href="#" data-cmd="weixin"></a><a title="分享到QQ好友" href="#" data-cmd="sqq"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"内容","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{},"image":{"viewList":["tsina","tqq","qzone","weixin","sqq"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["tsina","tqq","qzone","weixin","sqq"]}};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>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgfyxs.html