The Baidu sharing button is used in the project, and the Baidu sharing button is used in the project. The Baidu sharing button is used in the project, and the Baidu sharing button is used in the project. the main implementation code is as follows: scriptwindow. _ bd_share_config {common: {use of the Baidu share button in the project, Baidu share button project
The Baidu sharing button is used in the project. the main implementation code is as follows:
Script
Window. _ bd_share_config = {
"Common ":{
"BdText": 'Have a gift! ',
"BdDesc ":'',
"BdUrl": 'http: // www.baidu.com ', # enter the sharing address here.
"BdSign": 'off'
},
"Image ":{
"ViewList": ["qzone", "tsina", "tqq", "renren", "weixin"],
"ViewText": "share :",
"ViewSize": "16"
}
};
With (document) 0 [(getElementsByTagName ('head') [0] | body). appendChild (createElement ('script'). src = 'http: // response? V = 89860593.js? Cdnversion = '+ ~ (-New Date ()/36e5)];
Script
All parameters and usage of Baidu share button:
More
Script
Window. _ bd_share_config = {
Common: {// general settings
BdText: 'Custom shared content ',
BdDesc: 'Custom sharing summary ',
BdUrl: 'Custom sharing url address ',
BdPic: 'Custom Image Sharing'
},
Share: [{# Here is the setting for placing the share button
"BdSize": 16
}],
Slide: [{# place the floating window sharing settings here
BdImg: 0,
BdPos: "right ",
BdTop: 100
}],
Image: [{# set image sharing here
ViewType: 'list ',
ViewPos: 'top ',
ViewColor: 'black ',
ViewSize: '16 ',
ViewList: ['qzone ', 'tsina', 'huabany', 'QQ', 'renrenren']
}],
SelectShare: [{# place the word sharing settings here
"BdselectMiniList": ['qzone ', 'QQ', 'kaixin001', 'bdxc', 'tqf']
}]
}
# Js load part. the code is fixed and cannot be changed at will.
With (document) 0 [(getElementsByTagName ('head') [0] | body). appendChild (createElement ('script'). src = 'http: // response? Cdnversion = '+ ~ (-New Date ()/36e5)];
Script
Detailed explanation see: http://share.baidu.com/code/advance inside detailed tutorial
Baidu sharing button is used in the project. the main implementation code is as follows: script window. _ bd_share_config = {"common ":{...