静坐不虚兰室趣 清游自带竹林风

18个wordpress博客收藏分享书签代码

与大家分享18个博客收藏分享书签代码,适用于wordpress博客,大家可根据自己的喜好选择。个人常用的仅鲜果一个,其他的除Google Reader偶尔用一下外,基本没用过。

1. 分享到Google Reader的代码

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

2. 分享到开心网的代码

<a href="http://www.kaixin001.com/repaste/share.php?rtitle=<?php echo urlencode($post->post_title);?>&rurl=<?php echo urlencode(get_permalink($post->ID));?>&rcontent=<?php echo urlencode(strip_tags($post->post_content));?>" title="开心网" target="_blank" rel="nofollow">开心网</a>

3. 分享到twitter的代码

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

4. 分享到叽歪的代码

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

5. 分享到豆瓣的代码

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

6. 分享到Facebook的代码

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

7. 分享到FriendFeed的代码

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

8. 分享到嘀咕的代码

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

9. 分享到鲜果的代码

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

10. 分享到做啥的代码

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

11. 收藏到Delicious的代码

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

12. 收藏到QQ书签的代码

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

13. 收藏到Google的代码

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

14. 收藏到百度的代码

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

15. 收藏到雅虎的代码

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

16. 收藏到有道的代码

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

17. 推荐到九点的代码

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

18. 推荐到digg的代码

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

One thought on “18个wordpress博客收藏分享书签代码

发表评论

电子邮件地址不会被公开。 必填项已用*标注