Home php教程 php手册 30个WordPress博客书签收藏分享代码

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

Jun 13, 2016 am 11:13 AM
wordpress bookmark code share blog collect

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login

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>
Copy after login


Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1665
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
How to adjust the wordpress article list How to adjust the wordpress article list Apr 20, 2025 am 10:48 AM

There are four ways to adjust the WordPress article list: use theme options, use plugins (such as Post Types Order, WP Post List, Boxy Stuff), use code (add settings in the functions.php file), or modify the WordPress database directly.

How to build a website for wordpress host How to build a website for wordpress host Apr 20, 2025 am 11:12 AM

To build a website using WordPress hosting, you need to: select a reliable hosting provider. Buy a domain name. Set up a WordPress hosting account. Select a topic. Add pages and articles. Install the plug-in. Customize your website. Publish your website.

How to change the head image of the wordpress theme How to change the head image of the wordpress theme Apr 20, 2025 am 10:00 AM

A step-by-step guide to replacing a header image of WordPress: Log in to the WordPress dashboard and navigate to Appearance &gt;Theme. Select the topic you want to edit and click Customize. Open the Theme Options panel and look for the Site Header or Header Image options. Click the Select Image button and upload a new head image. Crop the image and click Save and Crop. Click the Save and Publish button to update the changes.

How to import the source code of wordpress How to import the source code of wordpress Apr 20, 2025 am 11:24 AM

Importing WordPress source code requires the following steps: Create a sub-theme for theme modification. Import the source code and overwrite the files in the sub-topic. Activate the sub-theme to make it effective. Test the changes to make sure everything works.

How to view the front-end of WordPress How to view the front-end of WordPress Apr 20, 2025 am 10:30 AM

You can view the WordPress front-end by logging into the dashboard and switching to the View Sites tab; automate the viewing process with a headless browser; installing the WordPress plugin to preview the front-end within the dashboard; viewing the front-end via a local URL (if WordPress is set locally).

What are the plugins for wordpress blocking ip What are the plugins for wordpress blocking ip Apr 20, 2025 am 08:27 AM

WordPress IP blocking plugin selection is crucial. The following types can be considered: based on .htaccess: efficient, but complex operation; database operation: flexible, but low efficiency; firewall: high security performance, but complex configuration; self-written: highest control, but requires more technical level.

How to cancel the editing date of wordpress How to cancel the editing date of wordpress Apr 20, 2025 am 10:54 AM

WordPress editing dates can be canceled in three ways: 1. Install the Enable Post Date Disable plug-in; 2. Add code in the functions.php file; 3. Manually edit the post_modified column in the wp_posts table.

How to write a header of a wordpress How to write a header of a wordpress Apr 20, 2025 pm 12:09 PM

The steps to create a custom header in WordPress are as follows: Edit the theme file "header.php". Add your website name and description. Create a navigation menu. Add a search bar. Save changes and view your custom header.

See all articles