欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

百度分享 有大用

网页一键分享按钮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>  


普通分类: