ホームページ > php教程 > php手册 > 30个WordPress博客书签收藏分享代码

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

WBOY
リリース: 2016-06-13 11:13:15
オリジナル
1735 人が閲覧しました

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>&notes=</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博客书签收藏分享代码" ><span class="string">"http://cdn.stumble-upon.com/images/120x20_su_gray.gif"</span><span>> </span></span></li>
</ol>
ログイン後にコピー


ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
最新の問題
人気のおすすめ
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート