Use of Baidu sharing button in projects, Baidu sharing button project_php tutorial

Source: Internet
Author: User
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 ":{...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.