百度分享旋钮在项目中的使用
百度分享按钮在项目中的使用
在项目中用到了百度分享按钮,主要实现代码如下:
<script><br />window._bd_share_config={<br /> "common":{<br /> "bdText" : '分享有好礼相赠!', <br /> "bdDesc" : '', <br /> "bdUrl" : 'http://www.baidu.com',#此处写分享地址<br /> "bdSign": 'off'<br /> },<br /> "image":{<br /> "viewList":["qzone","tsina","tqq","renren","weixin"],<br /> "viewText":"分享到:",<br /> "viewSize":"16"<br /> }<br />};<br /> <br />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)];<br /></script>
百度分享按钮的全部参数及用法:
<script><br /> window._bd_share_config = {<br /> common : {//此处是通用设置<br /> bdText : '自定义分享内容', <br /> bdDesc : '自定义分享摘要', <br /> bdUrl : '自定义分享url地址', <br /> bdPic : '自定义分享图片'<br /> },<br /> share : [{#此处是放置分享按钮的设置<br /> "bdSize" : 16<br /> }],<br /> slide : [{#此处放置悬浮窗分享设置 <br /> bdImg : 0,<br /> bdPos : "right",<br /> bdTop : 100<br /> }],<br /> image : [{#此处放置图片分享设置<br /> viewType : 'list',<br /> viewPos : 'top',<br /> viewColor : 'black',<br /> viewSize : '16',<br /> viewList : ['qzone','tsina','huaban','tqq','renren']<br /> }],<br /> selectShare : [{#此处放置划词分享设置<br /> "bdselectMiniList" : ['qzone','tqq','kaixin001','bdxc','tqf']<br /> }]<br /> }<br />#js加载部分,这部分的代码是固定的,不能随意更改。<br /> 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)];<br /></script>
具体详解见:http://share.baidu.com/code/advance 里面有详细教程

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Many users will choose the Huawei brand when choosing smart watches. Among them, Huawei GT3pro and GT4 are very popular choices. Many users are curious about the difference between Huawei GT3pro and GT4. Let’s introduce the two to you. . What are the differences between Huawei GT3pro and GT4? 1. Appearance GT4: 46mm and 41mm, the material is glass mirror + stainless steel body + high-resolution fiber back shell. GT3pro: 46.6mm and 42.9mm, the material is sapphire glass + titanium body/ceramic body + ceramic back shell 2. Healthy GT4: Using the latest Huawei Truseen5.5+ algorithm, the results will be more accurate. GT3pro: Added ECG electrocardiogram and blood vessel and safety

Concepts and instances of classes and methods Class (Class): used to describe a collection of objects with the same properties and methods. It defines the properties and methods common to every object in the collection. Objects are instances of classes. Method: Function defined in the class. Class construction method __init__(): The class has a special method (construction method) named init(), which is automatically called when the class is instantiated. Instance variables: In the declaration of a class, attributes are represented by variables. Such variables are called instance variables. An instance variable is a variable modified with self. Instantiation: Create an instance of a class, a specific object of the class. Inheritance: that is, a derived class (derivedclass) inherits the base class (baseclass)

The shares of the French video game developer Ubisoft reached a record low on Thursday. At a price of around 15.50 euros per share, the value has plummeted by around 10%. As a result, the company's market capitalization fell below 2 billion euros. In

Why Snipping Tool Not Working on Windows 11 Understanding the root cause of the problem can help find the right solution. Here are the top reasons why the Snipping Tool might not be working properly: Focus Assistant is On: This prevents the Snipping Tool from opening. Corrupted application: If the snipping tool crashes on launch, it might be corrupted. Outdated graphics drivers: Incompatible drivers may interfere with the snipping tool. Interference from other applications: Other running applications may conflict with the Snipping Tool. Certificate has expired: An error during the upgrade process may cause this issu simple solution. These are suitable for most users and do not require any special technical knowledge. 1. Update Windows and Microsoft Store apps

The shares of the French video game developer Ubisoft reached a record low on Thursday. At a price of around 15.50 euros per share, the value has plummeted by around 10%. As a result, the company's market capitalization fell below 2 billion euros. In

Class is a keyword in Python, used to define a class. The method of defining a class: add a space after class and then add the class name; class name rules: capitalize the first letter. If there are multiple words, use camel case naming, such as [class Dog()].

jQuery is a classic JavaScript library that is widely used in web development. It simplifies operations such as handling events, manipulating DOM elements, and performing animations on web pages. When using jQuery, you often encounter situations where you need to replace the class name of an element. This article will introduce some practical methods and specific code examples. 1. Use the removeClass() and addClass() methods jQuery provides the removeClass() method for deletion

When writing PHP code, using classes is a very common practice. By using classes, we can encapsulate related functions and data in a single unit, making the code clearer, easier to read, and easier to maintain. This article will introduce the usage of PHPClass in detail and provide specific code examples to help readers better understand how to apply classes to optimize code in actual projects. 1. Create and use classes In PHP, you can use the keyword class to define a class and define properties and methods in the class.
