30个WordPress博客书签收藏分享代码

开发 后端 前端
我们都知道,WordPress是一种使用PHP语言开发的博客平台,用户可以在支持PHP和MySQL 数据库的服务器上架设自己的网志。本文为你介绍了30个WordPress博客书签收藏的代码,一起来看。

30个博客书签收藏分享代码, 适用于wordpress博客。感谢博译论的投递,基于精品博客的代码列表的扩展。帕兰个人常得鲜果是必备和效果最好的,其它基本可有可无,看你的喜好了。

1. 分享到twitter的代码

  1. <a href="http://twitter.com/home?status=<?php the_permalink(); ?>   
  2. <?php the_title(); ?>" title="分享到 Twitter" target="_blank" rel="nofollow">Twitter</a> 

 

2. 分享到嘀咕的代码

  1. <a href="http://app.foxling.cn/dilink/share.asp?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>"   
  2. title="嘀咕一下" target="_blank">嘀咕</a> 

 

3. 分享到饭否的代码

  1. <a href="javascript:var d=document,w=window,  
  2. f='http://fanfou.com/share',l=d.location,  
  3. e=encodeURIComponent,  
  4. p='?u='+e(l.href)+'?t='+e(d.title)+'?d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'?s=bl';  
  5. if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,width=600,height=400'))  
  6. {l.href=f+'.new'+p;}void(0)">饭否</a>  

 

4. 分享到做啥的代码

  1. <a href="javascript:u=location.href;  
  2. t=document.title;t=t.substr(0,76);  
  3. c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);  
  4. c=c.substr(0,180);  
  5. location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);  
  6. void%200">做啥</a> 

 

5. 分享到叽歪的代码

  1. <a href="http://jiwai.de/wo/share/s?u=<?php the_permalink() ?>&t=<?php the_title(); ?>"   
  2. target="_blank">叽歪</a> 

6. 分享到豆瓣的代码

  1. <a href="javascript:void(function(){var%20d=document,  
  2. e=encodeURIComponent,s1=window.getSelection,  
  3. s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',  
  4. r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function()  
  5. {if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))  
  6. location.href=r+'&r=1'};  
  7. if(/firefox/.test(navigator.userAgent))  
  8. {setTimeout(x,0)}else{x()}})()" title="推荐到 豆瓣" rel="nofollow" >豆瓣</a> 

 

7. 分享到Facebook的代码

  1. <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>  
  2. &t=<?php the_title(); ?>"   
  3. target="blank">Facebook</a> 

 

8. 分享到FriendFeed的代码

  1. <a href="javascript:void((function(){var%20e=document.createElement('script');  
  2. e.setAttribute('type','text/javascript');  
  3. e.setAttribute('src','http://friendfeed.com/share/bookmarklet/javascript');  
  4. document.body.appendChild(e)})())"   
  5. title="分享到 FriendFeed" rel="nofollow"> 
  6. FriendFeed</a> 

 

9. 分享到Google Reader的代码

  1. <a href="javascript:var%20b=document.body;  
  2. var%20GR________bookmarklet_domain='http://www.google.com';  
  3. if(b&&!document.xmlVersion){void(z=document.createElement('script'));  
  4. void(z.src='http://www.google.com/reader/ui/link-bookmarklet.js');  
  5. void(b.appendChild(z));}  
  6. else{}"   
  7. title="Share in Google Reader" rel="nofollow">Google Reader</a> 

 

10. 分享到海内的代码

  1. <a href="javascript:void((function(s,d,e,t,v)  
  2. {var f=’http://hainei.com/share.proxy?a=’,  
  3. u=d.location,l=d.title,p=['& src=bookmark&url=',  
  4. e(u),'&title=',e(l),'&v=',v,'& i=',t].join(”);  
  5. function a(){if(!window.open([f,'bmlet',p].join(”),’hnsharer’, ['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width- 626)/2,',top=',  
  6. (s.height-436)/2].join(”)))u.href= [f,'newurl',p].join(”);};  
  7. if(/Firefox /.test(navigator.userAgent))  
  8. setTimeout(a,0);else a();})(screen,document,encodeURIComponent,1207710314,1));">海內</a> 

 

11. 分享到鲜果的代码

  1. <a href="http://www.xianguo.com/service/submitdigg/?link=<?php the_permalink() ?>  
  2. &title=<?php the_title(); ?>" target="_blank">鲜果</font></a> 

 

12. 分享到垦一垦的代码

  1. <a href="http://www.ken1ken.com/submit/?source=bookmarklet;ver=2;  
  2. url=<?php the_permalink() ?>;  
  3. title=<?php the_title(); ?>" target="_blank">垦一垦</a> 

 

13. 分享到我挖的代码

  1. <a href="http://www.digbuzz.com/submit.php?url=<?php the_permalink() ?>"   
  2. target="_blank">我挖</a> 

 

14. 分享到挖客的代码

  1. <a href="http://www.waakee.com/submit.php?url=<?php the_permalink() ?>"   
  2. target="_blank">挖客</a> 

 

15. 分享到奇客的代码

  1. <a href="http://www.diglog.com/submit.aspx?title=<?php the_title(); ?>&url=<?php the_permalink() ?>&description="   
  2. target="_blank">奇客</a> 

 

16. 分享到Gootou的代码

  1. <a href="javascript:var%20glx_t='default';  
  2. (function()  
  3. {var%20js=document.createElement('script');  
  4. if(typeof(js)!='object')  
  5. js=document.standardCreateElement('script');  
  6. js.type=%22text/javascript%22;  
  7. js.src='http://www.gootou.com/js/fetch_page.js';  
  8. document.getElementsByTagName('html')[0].appendChild(js)})();">  
  9. Gootou</a> 

 

17. 收藏到Delicious的代码

  1. <a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>  
  2. &notes=" target="_blank">Delicious</a> 

 

18. 收藏到QQ书签的代码

  1. <a href="http://shuqian.qq.com/post?from=3&title=<?php the_title(); ?>  
  2. &uri=<?php the_permalink() ?>&jumpback=2&noui=1" target="_blank">QQ</a> 

 

19. 收藏到Google的代码

  1. <a href="http://www.google.com/bookmarks/mark?op=add&bkmk=<?php the_permalink() ?>  
  2. &title=<?php the_title(); ?>">Google</a> 

 

20. 收藏到百度的代码

  1. <a href="http://cang.baidu.com/do/add?it=<?php the_title(); ?>  
  2. &iu=<?php the_permalink() ?>&fr=ien#nw=1" target="_blank">百度</a> 

 

21. 收藏到雅虎的代码

  1. <a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php the_permalink() ?>  
  2. &t=<?php the_title(); ?>" target="_blank">雅虎</a> 

 

22. 收藏到乐收的代码

  1. <a href="http://leshou.com/post?act=shou&reuser=&url=<?php the_permalink() ?>  
  2. &title=<?php the_title(); ?>&intro=&tags=&tool=1" target="_blank">乐收</a> 

 

23. 收藏到收客的代码

  1. <a href="http://www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?>  
  2. &surl=<?php the_permalink() ?>&tags=&desc=" target="_blank">收客</a> 

 

24. 收藏到9fav的代码

  1. <a href="http://www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?>  
  2. &surl=<?php the_permalink() ?>&tags=&desc=" target="_blank">收客</a> 

 

25. 收藏到Mister.Wong的代码

  1. <a href="http://www.mister-wong.cn/index.php?action=addurl&amp;bm_url=<?php the_permalink() ?>&amp;  
  2. bm_description=<?php the_title(); ?>"   
  3. target="_blank">Mister.Wong</a> 

 

26. 收藏到有道的代码

  1. <a href="javascript:void(window.open(’http://shuqian.youdao.com/manage?a=popwindow&title=’ + encodeURI(document.title) +   
  2. ‘&url=’ + encodeURI(document.location), ”>  
  3.  有道</a> 

 

27. 推荐到九点的代码

  1. <script type="text/javascript" src="http://9.douban.com/js/button_widget.js"></script> 

 

28. 推荐到sphinn

 

  1. <script type="text/javascript" src="http://sphinn.com/evb/button.php"></script> 

 

29. 推荐到digg的代码
 

  1. <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> 

 

30. 推荐到stublem upon的代码
 

  1. <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>  
  2. &title=<?php the_title(); ?>">  
  3. <img src="http://cdn.stumble-upon.com/images/120x20_su_gray.gif"></a 

【编辑推荐】

  1. 10个高级WordPress自定义字段技巧
  2. 深度剖析WordPress主题结构
  3. 三种直接备份WordPress博客数据库的方法
  4. 4.3 一定要会用的WordPress工具
  5. WordPress宕机几小时 数百万博客受影响
责任编辑:于铁 来源: 帕兰映像
相关推荐

2023-10-07 14:37:10

Java开发

2013-06-03 13:40:53

响应式主题主题

2016-11-28 14:59:08

2012-11-27 10:23:18

CSSWeb开发

2020-05-28 08:59:40

Python机器学习开发

2010-09-28 09:24:57

Live博客平台WordPress

2009-09-07 10:30:03

2020-05-13 13:55:16

MatplotlibPython代码

2020-09-23 09:20:58

代码Java字符串

2022-05-10 09:33:50

Pandas技巧代码

2017-12-14 17:14:32

GithubJavaScript程序员

2019-10-31 08:22:39

shell脚本Linux

2022-12-19 15:23:51

JavaScrip开发语言

2023-05-30 15:11:16

JavaScrip开发功能

2023-10-09 14:48:06

2023-10-10 16:16:05

JavaScrip开发

2019-10-10 16:49:18

Python镜音双子脚本语言

2011-07-11 13:37:35

2015-08-06 13:12:10

PHP代码样例

2020-07-13 15:10:47

Python代码字符串
点赞
收藏

51CTO技术栈公众号