加入收藏    
西土居
西土居士热烈欢迎各位莅临敝站!
简介  |  随录  |  掠影  |  忆土  |  邮箱  |  联系
珂斋 秦序
秦序网

文档分类

个人感言
忆土杂说
球彼郑南
SCILAB
MATLAB
ENGLISH
学习园地
Русский
软件安装
阅读文摘

一键分享代码

您的位置:西土居>随录>软件安装>正文

再思一下 风逝随录

一键分享代码

西垂忆土
2015-06-18 11:07:34 分类:软件安装 标签:一键分享 分享代码 网站推广 网站宣传 
你想让自己的小站更快地宣传出去吗?你想让你的文章更多地被人看到吗?加上一键分享按钮吧,会让你看到意想不到的效果的!

在网站的和之间的任何位置加上一段代码,在别人访问你的站点时就可以分享到他的其他社交网站了。

较长版本(带有更多按钮):



<div class="bdsharebuttonbox">
<a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a>
<a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a>
<a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a>
<a title="分享到百度贴吧" href="#" class="bds_tieba" data-cmd="tieba"></a>
<a title="分享给QQ好友" href="#" class="bds_sqq" data-cmd="sqq"></a>
<a title="分享到点点网" href="#" class="bds_diandian" data-cmd="diandian"></a>
<a title="分享到天涯社区" href="#" class="bds_ty" data-cmd="ty"></a>
<a title="分享到豆瓣网" href="#" class="bds_douban" data-cmd="douban"></a>
<a title="分享到开心网" href="#" class="bds_kaixin001" data-cmd="kaixin001"></a>
<a title="分享到有道云笔记" href="#" class="bds_youdao" data-cmd="youdao"></a>
<a title="分享到轻笔记" href="#" class="bds_qingbiji" data-cmd="qingbiji"></a>
<a title="分享到麦库记事" href="#" class="bds_sdo" data-cmd="sdo"></a>
<a title="分享到飞信" href="#" class="bds_fx" data-cmd="fx"></a>
<a title="邮件分享" href="#" class="bds_mail" data-cmd="mail"></a>
<a title="复制网址" href="#" class="bds_copy" data-cmd="copy"></a>
<a title="打印本页" href="#" class="bds_print" data-cmd="print"></a>
<a title="Share to Facebook" href="#" class="bds_fbook" data-cmd="fbook"></a>
<a title="Share to Twitter" href="#" class="bds_twi" data-cmd="twi"></a>
<a title="Share to linkedin" href="#" class="bds_linkedin" data-cmd="linkedin"></a>
<a href="#" class="bds_more" data-cmd="more"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2",
"bdMiniList":["renren","tqf","bdysc","thx","meilishuo","mogujie",
"huaban","duitang","hx","yaolan","iguba"],"bdPic":"","bdStyle":"1","bdSize":"16"},
"share":{},"image":{"viewList":["qzone","tsina","weixin","tieba","sqq","diandian",
"ty","douban","kaixin001","youdao","qingbiji",
"sdo","fx","mail","copy","print","fbook","twi","linkedin"],
"viewText":"分享到:","viewSize":"16"},
"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","weixin",
"tieba","sqq","diandian","ty","douban",
"kaixin001","youdao","qingbiji","sdo","fx","mail",
"copy","print","fbook","twi","linkedin"]}};
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)];
</script>
较长版本(不带更多按钮):
<div class="bdsharebuttonbox">
<a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a>
<a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a>
<a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a>
<a title="分享到百度贴吧" href="#" class="bds_tieba" data-cmd="tieba"></a>
<a title="分享到QQ好友" href="#" class="bds_sqq" data-cmd="sqq"></a>
<a title="分享到点点网" href="#" class="bds_diandian" data-cmd="diandian"></a>
<a title="分享到天涯社区" href="#" class="bds_ty" data-cmd="ty"></a>
<a title="分享到豆瓣网" href="#" class="bds_douban" data-cmd="douban"></a>
<a title="分享到开心网" href="#" class="bds_kaixin001" data-cmd="kaixin001"></a>
<a title="分享到有道云笔记" href="#" class="bds_youdao" data-cmd="youdao"></a>
<a title="分享到轻笔记" href="#" class="bds_qingbiji" data-cmd="qingbiji"></a>
<a title="分享到麦库记事" href="#" class="bds_sdo" data-cmd="sdo"></a>
<a title="分享到飞信" href="#" class="bds_fx" data-cmd="fx"></a>
<a title="分享到邮件分享" href="#" class="bds_mail" data-cmd="mail"></a>
<a title="分享到复制网址" href="#" class="bds_copy" data-cmd="copy"></a>
<a title="分享到打印" href="#" class="bds_print" data-cmd="print"></a>
<a title="分享到Facebook" href="#" class="bds_fbook" data-cmd="fbook"></a>
<a title="分享到Twitter" href="#" class="bds_twi" data-cmd="twi"></a>
<a title="分享到蘑菇街" href="#" class="bds_mogujie" data-cmd="mogujie"></a>
<a title="分享到美丽说" href="#" class="bds_meilishuo" data-cmd="meilishuo"></a>
<a title="分享到花瓣" href="#" class="bds_huaban" data-cmd="huaban"></a>
<a title="分享到堆糖" href="#" class="bds_duitang" data-cmd="duitang"></a>
<a title="分享到和讯" href="#" class="bds_hx" data-cmd="hx"></a>
<a title="分享到摇篮空间" href="#" class="bds_yaolan" data-cmd="yaolan"></a>
</div>
<script>window._bd_share_config={"common":{"bdSnsKey":
{},"bdText":"","bdMini":"2","bdMiniList":
["wealink","linkedin"],"bdPic":"","bdStyle":"1","bdSize":"16"},"share":
{},"image":{"viewList":
["qzone","tsina","weixin","tieba","sqq","diandian","ty","douban",
"kaixin001","youdao","qingbiji","sdo","fx","mail","copy","print",
"fbook","twi","mogujie","meilishuo","huaban","duitang","hx",
"yaolan"],"viewText":"分享到:","viewSize":"16"},"selectShare":
{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","weixin",
"tieba","sqq","diandian","ty","douban",
"kaixin001","youdao","qingbiji","sdo","fx","mail","copy","print",
"fbook","twi","mogujie","meilishuo","huaban","duitang","hx",
"yaolan"]}};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)];
</script>

较短版本:

<div class="bdsharebuttonbox">

<a href="#" class="bds_qzone" data-cmd="qzone"></a>

<a href="#" class="bds_tsina" data-cmd="tsina"></a>

<a href="#" class="bds_tqq" data-cmd="tqq"></a>

<a href="#" class="bds_renren" data-cmd="renren"></a>

<a href="#" class="bds_weixin" data-cmd="weixin"></a>

<a href="#" class="bds_more" data-cmd="more"></a></div>

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"", "bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"}, "share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"], "viewText":"分享到:","viewSize":"16"},
"selectShare":{"bdContainerClass":null, "bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};
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)];
</script>

另一种长版本(没有更多按钮)


<div class="bshare-custom"><div class="bsPromo bsPromo2"></div>

<a title="分享到QQ空间" class="bshare-qzone"></a>

<a title="分享到新浪微博" class="bshare-sinaminiblog"></a>

<a title="分享到微信" class="bshare-weixin"></a>

<a title="分享到百度贴吧" class="bshare-itieba"></a>

<a title="分享给QQ好友" class="bshare-qqim"></a>

<a title="分享到点点网" class="bshare-diandian"></a>

<a title="分享到天涯" class="bshare-tianya"></a>

<a title="分享到豆瓣" class="bshare-douban"></a>

<a title="分享到开心网" class="bshare-kaixin001"></a>

<a title="分享到新浪Qing" class="bshare-sinaqing"></a>

<a title="分享到有道笔记" class="bshare-youdaonote"></a>

<a title="分享到轻笔记" class="bshare-qingbiji" href="javascript:void(0);"></a>

<a title="电子邮件分享" class="bshare-email"></a>

<a title="复制网址" class="bshare-clipboard" href="javascript:void(0);"></a>

<a title="打印本页" class="bshare-printer" href="javascript:void(0);"></a>

<a title="Share to Facebook" class="bshare-facebook"></a>

<a title="Share to Twitter" class="bshare-twitter"></a>

<a title="Share to Tumblr" class="bshare-tumblr"></a>

<a title="Share to LinkedIn" class="bshare-linkedin" href="javascript:void(0);"></a>

<a title="分享到朋友网" class="bshare-qqxiaoyou" href="javascript:void(0);"></a>

<a title="分享到人人网" class="bshare-renren" href="javascript:void(0);"></a><span style="float: none;"
class="BSHARE_COUNT bshare-share-count">0</span></div><script type="text/javascript" charset="utf-8"
src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script>
<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>

另一种短版本:

<div class="bshare-custom">

<a title="分享到QQ空间" class="bshare-qzone"></a>

<a title="分享到新浪微博" class="bshare-sinaminiblog"></a>

<a title="分享到人人网" class="bshare-renren"></a>

<a title="分享到腾讯微博" class="bshare-qqmb"></a>

<a title="分享到网易微博" class="bshare-neteasemb"></a>

<a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a>

<span class="BSHARE_COUNT bshare-share-count">0</span></div>

<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;
uuid=&amp;pophcol=2&amp;lang=zh"></script>

<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>

注:小站使用的就是另一种没有更多按钮的长版本。

0
微信号:xituju
扫右边加微信
微博:xituju 点击() 评论(0
<< 2015年高考新课标卷数学真题 >> 多语言版多系统启动管理软件EasyBCD

若想被及时回复,请留联系方式(最好是电子邮箱地址),或者再发邮件催一下。

评论请遵守法律,不得乱发与本站无关的内容,待审核通过即可显示。
  昵称 * *  
评论 *
验证码 * 验证码看不清,点击刷新(区分大小写)  

本站部分文章、资源来自互联网,版权归原作者及网站所有,如果侵犯了您的权利,请及时致信告知我站。

版权声明:凡注明来源为本站的任何作品,本站保留所有权利,未经同意不得用于商业用途,转载时请保留本站链接。

Copyright © 2013-2016 XITUJU  陇ICP备15001363号-1  All Rights Reserved  版权所有 © 西土居