Add Baidu Share button custom call JS code for Blog Park (or website)

Source: Internet
Author: User

1, Baidu Share code call address

Http://share.baidu.com/code

Follow the prompts, step-by-step custom selection, and finally copy the custom style to add to the Web.

2, in the first page of HTML code to add the copied JS code
<!--Baidu Share--><script>window._bd_share_config={"Common":{"Bdsnskey":{},"Bdtext":"","Bdmini":"2","bdminilist":false,"Bdpic":"","Bdstyle":"0","bdsize":" -"},"Slide":{"type":"Slide","bdimg":"2","Bdpos":" Right","Bdtop":"168"}};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='+~(-NewDate ()/36e5)];</script>
3, the effect please see my blog page on the right, the Blue share button

Add Baidu Share button custom call JS code for Blog Park (or website)

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.