function makeShare(url, title){ //http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A%2F%2Fwww.jiathis.com%2Fhelp%2Fhtml%2Fqzone-share-code%23jtss-qzone&title=%E5%88%86%E4%BA%AB%E5%88%B0QQ%E7%A9%BA%E9%97%B4%E4%BB%A3%E7%A0%81&pics=&summary=%E5%85%B3%E4%BA%8EQQ%E7%A9%BA%E9%97%B4%EF%BC%9AQQ%E7%A9%BA%E9%97%B4%EF%BC%88 var share_urls ={ qq_space:['http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(title)+'&pics='+(arguments.length>2?arguments[2]:'')+'&summary='+encodeURIComponent(title),'QQ空间'], sina:['http://service.weibo.com/share/share.php?appkey=583395093&title='+title+'&url='+encodeURIComponent(url)+'&source=bshare&retcode=0&ralateUid=','新浪微博'], qq_weibo:['http://share.v.t.qq.com/index.php?c=share&a=index&title='+title+'&site='+encodeURIComponent(url)+'&appkey=dcba10cb2d574a48a16f24c9b6af610c&assname=${RALATEUID}','QQ微博'], renren:['http://widget.renren.com/dialog/share?resourceUrl='+encodeURIComponent(url)+'&title='+title+'&images=&description=','人人网'], kaixin:['http://www.kaixin001.com/login/open_login.php?flag=1&url='+encodeURIComponent('/rest/records.php?url='+url+'&content='+title+'&pic=&starid=&aid=100013770&style=111'),'开心网'], taobao:['http://login.taobao.com/member/login.jhtml?redirect_url='+encodeURIComponent('http://share.jianghu.taobao.com/share/addShare.htm?url='+url+'&title='+title),'淘宝网'] }; var html = '<ul class="share_div">'; for(var i in share_urls) { html+='<li><a style="width:auto" href="'+share_urls[i][0]+'" target="_blank" >'+share_urls[i][1]+'</li>'; } html+='</ul>'; $('#share_span').html(html); }