One-click Sharing to each SNS plugin

Source: Internet
Author: User

Share with Baidu: Http://share.baidu.com/code/advance#toid

Cases:

Html:

<div class= "Bdsharebuttonbox" data-tag= "share_1" ><div style= ' background: #252525; color:white;width:32px; ' > Share </div>//Here is the content you added <a class= "Bds_tsina" data-cmd= "Tsina" ></a><br/><a class= "Bds_ Weixin "data-cmd=" Weixin "></a><br/><a class=" Bds_qzone "data-cmd=" Qzone "href=" # "></a> <BR/></div>

Css:

. bdsharebuttonbox{//You can use CSS to customize the share button position:fixed;right:0;top:100px;}

Js:

Window._bd_share_config = {//Add here to share specific settings common: {//Place common settings here Bdtext: ' New media poll ', Bddesc: ' New Media ', Bdurl: '/http ' Nm.abbs.com.cn/home/vote/index.html ', Bdpic: '//'},share://Place the Share button setting {"Bdsize": 32}}//The following is the JS loading section with (document ) 0[(getElementsByTagName (' head ') [0]| | Body). AppendChild (createelement (' script ')). src= ' Http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion = ' +~ (-new Date ()/36e5)];

One-click Sharing to each SNS plugin

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.