请选择 进入手机版 | 继续访问电脑版

网站网页通用一键分享按钮HTML代码

[复制链接]
查看3688 | 回复1 | 2019-3-8 09:43 | 显示全部楼层 |阅读模式
网站网页通用一键分享按钮HTML代码

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <META http-equiv="content-type" content="text/html; charset="UTF-8">
  5. <title>Insert title here</title>
  6. </head>
  7. <body>
  8. <div class="bdsharebuttonbox">
  9. <a href="#" class="bds_more" data-cmd="more"></a>
  10. <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
  11. <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
  12. <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
  13. <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
  14. <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
  15. </div>
  16. <script>
  17. window._bd_share_config={
  18.                 "common":{
  19.                         "bdPopTitle":"您的自定义pop窗口标题",
  20.                         "bdSnsKey":{},
  21.                         "bdText":"此处填写自定义的分享内容",
  22.                         "bdMini":"2",
  23.                         "bdMiniList":false,
  24.                         "bdPic":"http://localhost/centlight/public/attachment/201410/24/14/5449ef39574f5_282x220.jpg", /* 此处填写要分享图片地址 */
  25.                         "bdStyle":"0",
  26.                         "bdSize":"16"
  27.                         },
  28.                 "share":{}
  29. };
  30. with(document)0[
  31.                 (getElementsByTagName('head')[0]||body).
  32.                 appendChild(createElement('script')).
  33.                 src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)
  34. ];
  35.                 </script>
  36. </body>
  37. </html>
复制代码


老虎 | 2019-8-20 06:39 | 显示全部楼层
不错,支持一下,教程网!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-3-24