In a list page I need to share the interface Baidu, separate sharing each piece of information, but I use Baidu to share the custom interface has been to share the page, this How to do?
Reply content:
In a list page I need to share the interface Baidu, separate sharing each piece of information, but I use Baidu to share the custom interface has been to share the page, this How to do?
This has been done before, there is no way, after I switch to third-party, but also free. This plugin is very powerful.
You specifically refer to the following
http://blog.bshare.cn/
var shareurl = ""; var sharedesc= ""; var sharepic= ""; var sharetitle= ""; $ (". Bdsharebuttonbox a"). MouseOver (function () {Shareurl = $ (this). Parents (". Bdsharebuttonbox"). attr ("Data-url"); sharedesc=$ (This). Parents (". Bdsharebuttonbox"). attr ("Data-desc"); sharepic=$ (This). Parents (". Bdsharebuttonbox"). attr ("Data-pic"); sharetitle=$ (This). Parents (". Bdsharebuttonbox"). attr ("Data-title"); }); function setshare (cmd, config) {if (shareurl) {config.bdurl = Shareurl; } if (Sharedesc) {config.bddesc = Sharedesc; } if (sharepic) {config.bdpic = Sharepic; } if (sharetitle) {config.bdtext = Sharetitle; } return config; } Window._bd_share_config = {"Common": {onbeforeclick:setshare, "Bdsnskey": {}, "Bdmini": "2", "Bdminilist": false, " Bdstyle ":" 0 "," bdsize ":" 24 "}, "Share": {}} 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)];
Add the appropriate custom links and titles to the Bdsharebuttonbox layer