---
title: "一个很好的百度分享插件"
author: "yanyanquan"
date: "2013-06-06T01:48:29Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2013-06-06T01:48:29Z"
id: 1883005
url: "https://kwon.iteye.com/blog/1883005"
---

右侧边弹出的分享控件：

样式如图所示：

[![一个很好的百度分享插件](http://s10.sinaimg.cn/middle/49f485704c396cfb60c79&690 "一个很好的百度分享插件")](http://photo.blog.sina.com.cn/showpic.html#blogid=49f48570010140wl&url=http://s10.sinaimg.cn/orignal/49f485704c396cfb60c79)

&lt;script type="text/javascript" id="bdshare\_js"

data="type=slide&amp;img=6"&gt;&lt;/script&gt;

&lt;script type="text/javascript" id="bdshell\_js"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;

document.getElementByIdx\_x("bdshell\_js").src = "http://bdimg.share.baidu.com/static/js/shell\_v2.js?cdnversion=" + new Date().getHours();

&lt;/script&gt;

各种显示风格直接最下方的“百度分享”即可。