各种微博分享按钮代码

2019-04-15 16:48发布

转自:http://www.cnblogs.com/oneLight/archive/2011/12/07/2280064.html
1 <a id="tqq" class="menu" href="javascript:window.open('http://v.t.qq.com/share/share.php?url='+encodeURIComponent('[url]')+'&pic='+encodeURIComponent('')+'&title='+encodeURIComponent([content])),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">腾讯微博a>   新浪微薄: 1 <a id="sina" class="menu" href="javascript:window.open('http://v.t.sina.com.cn/share/share.php?appkey=1961588658&url='+encodeURIComponent('[url]')+'&pic='+encodeURIComponent('')+'&title='+encodeURIComponent('[content]'),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">新浪微博a> QQ空间:   1 <a id="qq" class="menu" href="javascript:window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent('[url]')+'&title='+encodeURIComponent('[content]'),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">QQ空间a>   页面示例:   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 <body> <script type="text/javascript"> function showLayers(){     if(!document.getElementById("shareLayer")) return false;     if(!document.getElementById("l_box")) return false;     var layerId = document.getElementById("shareLayer");     var lBoxId = document.getElementById("l_box");     if(layerId.offsetWidth == 30){         layerId.style.width = "180px"         lBoxId.style.display = "block";     }else{         layerId.style.width = "30px"         lBoxId.style.display = "none";     } } /*title是标题,rLink链接,summary内容,site分享来源,pic分享图片路径*/ /*新浪微博*/ function shareTSina(title,rLink,site,pic){     window.open('http://service.weibo.com/share/share.php?title='+encodeURIComponent(title)+'&url='+encodeURIComponent(rLink)+'&appkey='+encodeURIComponent(site)+'&pic='+encodeURIComponent(pic),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes')        } /*腾讯微博*/ function shareToWb(title,rLink,site,pic){     window.open('http://v.t.qq.com/share/share.php?url='+encodeURIComponent(rLink)+'&title='+encodeURI(title)+'&appkey='+encodeURI(site)+'&pic='+encodeURI(pic),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes')    } /*人人*/ function shareRR(title,rLink,summary){     window.open('http://widget.renren.com/dialog/feed?title='+encodeURIComponent(title)+'&link='+encodeURIComponent(rLink)+'&description='+encodeURIComponent(summary),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); } /*开心网*/ function shareKX(title,rLink,summary){     window.open('http://www.kaixin001.com/repaste/bshare.php?rtitle='+encodeURIComponent(title)+'&rurl='+encodeURIComponent(rLink)+'&rcontent='+encodeURIComponent(summary),'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes' )    } /*QQ空间*/ function shareQzone(title,rLink,summary,site,pic){     window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title='+encodeURIComponent(title)+'&url='+encodeUR