一键分享代码
代码:无图片
<div id=”share”>一键分享代码<b>分享这篇文章:</b><a rel=”nofollow” href=”javascript:window.open(’http://shuqian.qq.com/post?from=3&jumpback=2&noui=1&uri=’+encodeURIComponent(document.location.href)+’&title=’+encodeURIComponent(document.title),”,’width=930,height=570,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes’);void(0)”>收藏到QQ书签</a> <a rel=”nofollow” href=”javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0″>百度搜藏</a> <a rel=”nofollow” href=”javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(’http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=’+c(b.location)+’&title=’+c(b.title),’bkmk_popup’,'left=’+((a.screenX||a.screenLeft)+10)+’,top=’+((a.screenY||a.screenTop)+10)+’,height=420px,width=550px,resizable=1,alwaysRaised=1′);a.setTimeout(function(){d.focus()},300)})();”>Google书签</a> <a rel=”nofollow” href=”javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f=’http://share.xiaonei.com/share/buttonshare.do?link=’,u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join(”);function%20a(){if(!window.open([f,p].join(”),’xnshare’,['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join(”)))u.href=[f,p].join(”);};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));”>分享到人人网</a> <a rel=”nofollow” href=”javascript:d=document;t=d.selection?(d.selection.type!=’None’?d.selection.createRange().text:”):(d.getSelection?d.getSelection():”);void(kaixin=window.open(’http://www.kaixin001.com/~repaste/repaste.php?&rurl=’+escape(d.location.href)+’&rtitle=’+escape(d.title)+’&rcontent=’+escape(d.title),’kaixin’));kaixin.focus();”>转贴到开心网</a> <a rel=”nofollow” href=”javascript:(function(){window.open(’http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=’+ encodeURIComponent(location.href)+ ‘&title=’+encodeURIComponent(document.title),’_blank’);})()” title=”分享到QQ空间”>分享到QQ空间</a> <a rel=”nofollow” href=”javascript:(function(){window.open(’http://v.t.sina.com.cn/share/share.php?title=’+encodeURIComponent(document.title)+’&url=’+encodeURIComponent(location.href)+’&source=bookmark’,'_blank’,'width=450,height=400′);})()” title=”新浪微博分享”>分享到新浪微博</a> <a 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)+’&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+’&r=1′};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()”>分享到豆瓣</a></div>
囧,这样发布代码太恐怖了。
搜索一下“代码高亮”。
@cho
没时间…只是自己记录一下 哈哈