各大微博, 收藏, 分享网站提交代码

Posted on 05月 26, 2009 | Author: 黑白天空 | Filed under: My WordPress | View: 795

(13) Comments

分享收藏推广博客

国内现在微博以及在线收藏服务很多, 它们可以让更多人分享好的文章.

WordPress类似的插件有几款, 如国内的17Fav, 国外的Share this.

如果你喜欢折腾博客, 不妨自己手动进行添加, 做成你想要的样式.

1. 各站提交代码

A. 微博客

Twitter (推特)

1
2
3
4
5
<a href="http://twitter.com/home?status=我正在阅读: <?php the_title(); ?> (<?php the_permalink(); ?>)" target="_blank">
  <font color="#33ccff">
    Twitter
  </font>
</a>

嘀咕

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

饭否

1
2
3
<a href="javascript:var d=document,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,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';if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,width=600,height=400')){l.href=f+'.new'+p;}void(0)">
  饭否
</a>

做啥

1
2
3
<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>

叽歪

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

B. 网络书签

Delicious

1
2
3
4
5
<a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>&notes=" target="_blank">
  <font color="#3274d0">
    Delicious
  </font>
</a>

QQ书签

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

Google

1
2
3
4
5
<a href="http://www.google.com/bookmarks/mark?op=add&bkmk=<?php the_permalink() ?>&title=<?php the_title(); ?>">
  <font color="#5054f1">
    Google
  </font>
</a>

百度

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

雅虎

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

乐收

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

收客

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

9fav

1
2
3
4
5
<a href="http://www.9fav.com/profile/user_url/add?t=<?php the_title(); ?>&u=<?php the_permalink() ?>" target="_blank">
  <font color="#e19d75">
    9fav
  </font>
</a>

C. 阅读推广

推荐到鲜果

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

垦一垦

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

我挖

1
2
3
4
5
<a href="http://www.digbuzz.com/submit.php?url=<?php the_permalink() ?>" target="_blank">
  <font color="#b2b2b2">
    我挖
  </font>
</a>

挖客

1
2
3
4
5
<a href="http://www.waakee.com/submit.php?url=<?php the_permalink() ?>" target="_blank">
  <font color="#b2d281">
    挖客
  </font>
</a>

奇客

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

Gootou

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

Mister.Wong

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

2. 加入到文章页面

A. 修改CSS

添加代码到style.css

1
2
3
4
5
6
7
#share{
   border-top:1px 
   solid #d4dee4;
   text-align:left;
   margin-top:10px;
   padding:10px 7px 5px 7px;
  }

B. 插入代码

在主题文件夹中新建bookmark.php文件, 插入第1步你需要的代码, 然后在single.php中插入下面的代码

1
2
3
4
5
<div id="share">
  <?php 
    include (TEMPLATEPATH . '/bookmark.php'); 
  ?>
</div>

C. 效果

分享收藏推广博客

特别感谢下Yacca大叔提供代码.

End

WP Greet Box icon
嘿嘿嘿, 看这里! 如果你第一次来, 你或许觉得这个博客还不错, 记得 订阅 RSS FEED , 这样就能及时收到更新了, 赶紧这样做吧.

> Tags: , , , ,
> 转载请遵循 "署名-非商业用途"的创作共用协议, 引用请附上文章原始地址
> 如喜欢这篇文章或者本站,建议您通过RSS订阅, 以及时获取更新内容!

13 个人对此文表达了自己的看法 | 点我去留言

  1. hackcat 说到:

    这个CSS的效果是什么啊?

  2. Hong Xiaowan 说到:

    写的不错呀,非常全面。

  3. 射击博客 说到:

    真全啊

  4. Yacca 说到:

    嘀咕现在很红包的样子 但因为我不使用 所以也就没添加了 哈

  5. 黑白天空 说到:

    CSS只是用来控制Div的大小的, 颜色是通过font来实现啦.

  6. oulove 说到:

    收了。谢谢分享

  7. beiwei36 说到:

    每次来都有收获~呵呵~

  8. dreamfree 说到:

    挺全面,你完全有必要把它作成插件,哈哈。

  9. 天大 说到:

    呵呵,很全,但是我现在用的博客上好像都已经包括了
    还有,把文字和控制颜色的代码换成图片是不是显示的就是图片啊?

  10. 会律博客 说到:

    好东西哦,谢谢分享!

  11. 卢松松 说到:

    非常好的东西。。。收藏了

  12. 我想想 说到:

    都很全面啊

  13. 要饭的 说到:

    有空研究研究这个

想要说点什么