您的位置:首页 > 编程语言

分享到 豆瓣 QQ书签 开心网 人人网 google buzz twitter facebook等 代码

2011-12-09 10:36 666 查看
帮朋友加 分享到facebook twitter 代码 整理下,分享给大家

推荐到豆瓣
<a rel="nofollow" class="fav_douban" 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)+'&title='+e(d.title)+'& sel='+e(s)+'&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 rel="nofollow" class="fav_douban" href="javascript:window.open('http://www.douban.com/recommend /?url='+encodeURIComponent(document.location.href)+'& title='+encodeURIComponent(document.title));void(0)">豆瓣</a>

收藏到QQ书签
<a rel="nofollow" class="fav_qq" href="javascript:window.open('http://shuqian.qq.com/post?from=3& title='+encodeURIComponent(document.title)+'& uri='+encodeURIComponent(document.location.href)+'&jumpback=2& 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>

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

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

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

GOOGLE书签
<a rel="nofollow" class="fav_google" href="javascript:window.open('http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title));void(0)">Google</a>GOOGLE Buzz
<a rel="nofollow" class="fav_buzz" href="javascript:window.open('http://www.google.com/reader/link?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title)+'&srcURL=http://www.koryi.net');void(0)">Google Buzz</a>[b]

分享到 Twitter

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

分享到 Facebook

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

Delicious书签

[/b]<a rel="nofollow" class="fav_delicious" href="javascript:window.open('http://del.icio.us/post?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title)+'¬es=');void(0)">Delicious</a>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐