Rumah > Artikel > pembangunan bahagian belakang > 30个WordPress博客书签收藏分享代码_PHP教程
30个博客书签收藏分享代码, 适用于wordpress博客。感谢博译论的投递,基于精品博客的代码列表的扩展。帕兰个人常得鲜果是必备和效果最好的,其它基本可有可无,看你的喜好了。
1. 分享到twitter的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//twitter.com/home?status=<?php the_permalink(); ?> </span><span> </span></a></span></span></li> <li> <span><?php the_title(); ?></span><span class="string">" title="</span><span>分享到 Twitter</span><span class="string">" target="</span><span>_blank</span><span class="string">" rel="</span><span>nofollow">Twitter </span> </li> </ol>
2. 分享到嘀咕的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://app.foxling.cn/dilink/share.asp?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>"</span><span> </span></a></span></span></li> <li> <span>title=</span><span class="string">"嘀咕一下"</span><span> target=</span><span class="string">"_blank"</span><span>>嘀咕 </span> </li> </ol>
3. 分享到饭否的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">var</span><span> d=document,w=window, </span></a></span></span></li> <li> <span>f=</span><span class="string">'http://fanfou.com/share'</span><span>,l=d.location, </span> </li> <li class="alt"><span>e=encodeURIComponent, </span></li> <li> <span>p=</span><span class="string">'?u='</span><span>+e(l.href)+</span><span class="string">'?t='</span><span>+e(d.title)+</span><span class="string">'?d='</span><span>+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+</span><span class="string">'?s=bl'</span><span>; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(!w.open(f+</span><span class="string">'r'</span><span>+p,</span><span class="string">'sharer'</span><span>,</span><span class="string">'toolbar=0,status=0,width=600,height=400'</span><span>)) </span> </li> <li> <span>{l.href=f+</span><span class="string">'.new'</span><span>+p;}void(0)">饭否 </span> </li> </ol>
4. 分享到做啥的代码
<ol class="dp-c"> <li class="alt"><span><span><a></a></span></span></li> <li> <span>t=document.title;t=t.</span><span class="func">substr</span><span>(0,76); </span> </li> <li class="alt"><span>c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text); </span></li> <li> <span>c=c.</span><span class="func">substr</span><span>(0,180); </span> </li> <li class="alt"> <span>location=%22http:</span><span class="comment">//zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u); </span><span> </span> </li> <li><span>void%200">做啥 </span></li> </ol>
5. 分享到叽歪的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://jiwai.de/wo/share/s?u=<?php the_permalink() ?>&t=<?php the_title(); ?>"</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>叽歪 </span> </li> </ol>
6. 分享到豆瓣的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">function</span><span>(){</span><span class="keyword">var</span><span>%20d=document, </span></a></span></span></li> <li><span>e=encodeURIComponent,s1=window.getSelection, </span></li> <li class="alt"> <span>s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:</span><span class="string">' '</span><span>, </span> </li> <li> <span>r=</span><span class="string">'http://www.douban.com/recommend/?url='</span><span>+e(d.location.href)+</span><span class="string">'&title="</span><span>+e(d.title)+</span><span class="string">'&sel='</span><span>+e(s)+</span><span class="string">'&v=1'</span><span>,x=</span><span class="keyword">function</span><span>() </span> </li> <li class="alt"> <span>{</span><span class="keyword">if</span><span>(!window.open(r,</span><span class="string">'douban'</span><span>,</span><span class="string">'toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'</span><span>)) </span> </li> <li> <span>location.href=r+</span><span class="string">'&r=1'</span><span>}; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(/firefox/.test(navigator.userAgent)) </span> </li> <li> <span>{setTimeout(x,0)}</span><span class="keyword">else</span><span>{x()}})()</span><span class="string">" title="</span><span>推荐到 豆瓣</span><span class="string">" rel="</span><span>nofollow" >豆瓣 </span> </li> </ol>
7. 分享到Facebook的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.facebook.com/sharer.php?u=<?php the_permalink();?> </span><span> </span></a></span></span></li> <li><span>&t=<?php the_title(); ?>" </span></li> <li class="alt"> <span>target=</span><span class="string">"blank"</span><span>>Facebook </span> </li> </ol>
8. 分享到FriendFeed的代码
<ol class="dp-xml"> <li class="alt"><span><span class="tag"><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>="javascript:void((function(){var%</span><span class="attribute">20e</span><span>=</span><span class="attribute-value">document</span><span>.createElement('script'); </span></span></span></li> <li><span>e.setAttribute('type','text/javascript'); </span></li> <li class="alt"><span>e.setAttribute('src','http://friendfeed.com/share/bookmarklet/javascript'); </span></li> <li><span>document.body.appendChild(e)})())" </span></li> <li class="alt"> <span class="attribute">title</span><span>=</span><span class="attribute-value">"分享到 FriendFeed"</span><span> </span><span class="attribute">rel</span><span>=</span><span class="attribute-value">"nofollow"</span><span class="tag">></span><span> </span> </li> <li> <span>FriendFeed</span><span class="tag"></span><span class="tag-name">a</span><span class="tag">></span><span> </span> </li> </ol>
9. 分享到Google Reader的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">var</span><span>%20b=document.body; </span></a></span></span></li> <li> <span class="keyword">var</span><span>%20GR________bookmarklet_domain=</span><span class="string">'http://www.google.com'</span><span>; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(b&&!document.xmlVersion){void(z=document.createElement(</span><span class="string">'script'</span><span>)); </span> </li> <li> <span>void(z.src=</span><span class="string">'http://www.google.com/reader/ui/link-bookmarklet.js'</span><span>); </span> </li> <li class="alt"><span>void(b.appendChild(z));} </span></li> <li> <span class="keyword">else</span><span>{}" </span> </li> <li class="alt"> <span>title=</span><span class="string">"Share in Google Reader"</span><span> rel=</span><span class="string">"nofollow"</span><span>>Google Reader </span> </li> </ol>
10. 分享到海内的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">function</span><span>(s,d,e,t,v) </span></a></span></span></li> <li> <span>{</span><span class="keyword">var</span><span> f=’http:</span><span class="comment">//hainei.com/share.proxy?a=’, </span><span> </span> </li> <li class="alt"> <span>u=d.location,l=d.title,p=[</span><span class="string">'& src=bookmark&url='</span><span>, </span> </li> <li> <span>e(u),</span><span class="string">'&title="</span><span>,e(l),</span><span class="string">'&v='</span><span>,v,</span><span class="string">'& i='</span><span>,t].join(”); </span> </li> <li class="alt"> <span class="keyword">function</span><span> a(){</span><span class="keyword">if</span><span>(!window.open([f,</span><span class="string">'bmlet'</span><span>,p].join(”),’hnsharer’, [</span><span class="string">'toolbar=0,status=0,resizable=1,width=626,height=436,left='</span><span>,(s.width- 626)/2,</span><span class="string">',top='</span><span>, </span> </li> <li> <span>(s.height-436)/2].join(”)))u.href= [f,</span><span class="string">'newurl'</span><span>,p].join(”);}; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(/Firefox /.test(navigator.userAgent)) </span> </li> <li> <span>setTimeout(a,0);</span><span class="keyword">else</span><span> a();})(screen,document,encodeURIComponent,1207710314,1));">海內 </span> </li> </ol>
11. 分享到鲜果的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.xianguo.com/service/submitdigg/?link=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li> <span>&title=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">鲜果 </span> </li> </ol>
12. 分享到垦一垦的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.ken1ken.com/submit/?source=bookmarklet;ver=2; </span><span> </span></a></span></span></li> <li><span>url=<?php the_permalink() ?>; </span></li> <li class="alt"> <span>title=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">垦一垦 </span> </li> </ol>
13. 分享到我挖的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://www.digbuzz.com/submit.php?url=<?php the_permalink() ?>"</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>我挖 </span> </li> </ol>
14. 分享到挖客的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://www.waakee.com/submit.php?url=<?php the_permalink() ?>"</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>挖客 </span> </li> </ol>
15. 分享到奇客的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://www.diglog.com/submit.aspx?title=<?php the_title(); ?>&url=<?php the_permalink() ?>&description="</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>奇客 </span> </li> </ol>
16. 分享到Gootou的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">var</span><span>%20glx_t=</span><span class="string">'default'</span><span>; </span></a></span></span></li> <li> <span>(</span><span class="keyword">function</span><span>() </span> </li> <li class="alt"> <span>{</span><span class="keyword">var</span><span>%20js=document.createElement(</span><span class="string">'script'</span><span>); </span> </li> <li> <span class="keyword">if</span><span>(typeof(js)!=</span><span class="string">'object'</span><span>) </span> </li> <li class="alt"> <span>js=document.standardCreateElement(</span><span class="string">'script'</span><span>); </span> </li> <li><span>js.type=%22text/javascript%22; </span></li> <li class="alt"> <span>js.src=</span><span class="string">'http://www.gootou.com/js/fetch_page.js'</span><span>; </span> </li> <li> <span>document.getElementsByTagName(</span><span class="string">'html'</span><span>)[0].appendChild(js)})();"> </span> </li> <li class="alt"><span>Gootou </span></li> </ol>
17. 收藏到Delicious的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>¬es=</span><span class="string">" target="</span><span>_blank">Delicious </span> </li> </ol>
18. 收藏到QQ书签的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//shuqian.qq.com/post?from=3&title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&uri=<?php the_permalink() ?>&jumpback=2&noui=1</span><span class="string">" target="</span><span>_blank">QQ </span> </li> </ol>
19. 收藏到Google的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.google.com/bookmarks/mark?op=add&bkmk=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li><span>&title=<?php the_title(); ?>">Google </span></li> </ol>
20. 收藏到百度的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//cang.baidu.com/do/add?it=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&iu=<?php the_permalink() ?>&fr=ien#nw=1</span><span class="string">" target="</span><span>_blank">百度 </span> </li> </ol>
21. 收藏到雅虎的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li> <span>&t=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">雅虎 </span> </li> </ol>
22. 收藏到乐收的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//leshou.com/post?act=shou&reuser=&url=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li> <span>&title=<?php the_title(); ?>&intro=&tags=&tool=1</span><span class="string">" target="</span><span>_blank">乐收 </span> </li> </ol>
23. 收藏到收客的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&surl=<?php the_permalink() ?>&tags=&desc=</span><span class="string">" target="</span><span>_blank">收客 </span> </li> </ol>
24. 收藏到9fav的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&surl=<?php the_permalink() ?>&tags=&desc=</span><span class="string">" target="</span><span>_blank">收客 </span> </li> </ol>
25. 收藏到Mister.Wong的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.mister-wong.cn/index.php?action=addurl&bm_url=<?php the_permalink() ?>& </span><span> </span></a></span></span></li> <li><span>bm_description=<?php the_title(); ?>" </span></li> <li class="alt"> <span>target=</span><span class="string">"_blank"</span><span>>Mister.Wong </span> </li> </ol>
26. 收藏到有道的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//shuqian.youdao.com/manage?a=popwindow&title=’ + encodeURI(document.title) + </span><span> </span></a></span></span></li> <li><span>‘&url=’ + encodeURI(document.location), ”> </span></li> <li class="alt"><span> 有道 </span></li> </ol>
27. 推荐到九点的代码
<ol class="dp-c"><li class="alt"><span><span><script><span class="string">"text/javascript"</script></span><span> src=</span><span class="string">"http://9.douban.com/js/button_widget.js"</span><span>> </span></span></li></ol>
28. 推荐到sphinn
<ol class="dp-c"><li class="alt"><span><span><script><span class="string">"text/javascript"</script></span><span> src=</span><span class="string">"http://sphinn.com/evb/button.php"</span><span>> </span></span></li></ol>
29. 推荐到digg的代码
<ol class="dp-c"><li class="alt"><span><span><script><span class="string">"http://digg.com/tools/diggthis.js"</script></span><span> type=</span><span class="string">"text/javascript"</span><span>> </span></span></li></ol>
30. 推荐到stublem upon的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.stumbleupon.com/submit?url=<?php the_permalink(); ?> </span><span> </span></a></span></span></li> <li><span>&title=<?php the_title(); ?>"> </span></li> <li class="alt"><span><img alt="30个WordPress博客书签收藏分享代码_PHP教程" ><span class="string">"http://cdn.stumble-upon.com/images/120x20_su_gray.gif"</span><span>> </span></span></li> </ol>