分享到QQ/人人网/开心网/豆瓣/google/百度/facebook等代码

1,分享到人人网:

<a class="fav_renren" rel="nofollow" href="javascript:window.open('http://share.renren.com/share /buttonshare.do?link='+encodeURIComponent(document.location.href)+'& amp;title='+encodeURIComponent(document.title));void(0)">人人网</a& gt;

2,添加到百度收藏:

<a class="fav_baidu" rel="nofollow" href="javascript:window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&amp;iu='+encodeURIComponent(location.href)+'&amp;fr=ien#nw=1','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">百度搜藏</a>

3,分享到开心网:

<a class="fav_kaixin" rel="nofollow" href="javascript:window.open('http://www.kaixin001.com/repaste /share.php?rtitle='+encodeURIComponent(document.title)+'&amp; rurl='+encodeURIComponent(document.location.href)+'&amp;rcontent='); void(0)">开心网</a>

4,推荐到豆瓣网:

<a class="fav_douban" rel="nofollow" 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)+'&amp;title='+e(d.title)+'&amp;sel='+e(s)+'&amp;v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&amp;r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()"></a>

或者用这个:

<a class="fav_douban" rel="nofollow" href="javascript:window.open('http://www.douban.com/recommend /?url='+encodeURIComponent(document.location.href)+'&amp; title='+encodeURIComponent(document.title));void(0)">豆瓣</a>

5,添加QQ书签:

<a class="fav_qq" rel="nofollow" href="javascript:window.open('http://shuqian.qq.com/post?from=3&amp; title='+encodeURIComponent(document.title)+'&amp; uri='+encodeURIComponent(document.location.href)+'&amp;jumpback=2& amp;amp;noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes'); void(0)">QQ书签</a>

6,添加到GOOGLE书签:

<a class="fav_google" rel="nofollow" href="javascript:window.open('http://www.google.com/bookmarks/mark?op=add&amp;bkmk='+encodeURIComponent(document.location.href)+'&amp;title='+encodeURIComponent(document.title));void(0)">Google</a>

7,分享到Twitter:

<a class="fav_twitter" rel="nofollow" href="javascript:window.open('http://twitter.com/home?status='+encodeURIComponent(document.location.href)+' '+encodeURIComponent(document.title));void(0)">Twitter</a>

8,分享到Facebook:

<a class="fav_facebook" rel="nofollow" href="javascript:window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(document.location.href)+'&amp;t='+encodeURIComponent(document.title));void(0)">Facebook</a>

9,Delicious书签:

<a class="fav_delicious" rel="nofollow" href="javascript:window.open('http://del.icio.us/post?url='+encodeURIComponent(document.location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;notes=');void(0)">Delicious</a>

10.分享到yahoo

<a class="fav_delicious" rel="nofollow" href="javascript:window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(document.location.href)+'&amp;t='+encodeURIComponent(document.title)+'&amp;notes=');void(0)">Yahoo</a>

你可能感兴趣的:(分享到QQ/人人网/开心网/豆瓣/google/百度/facebook等代码)