各种分享api
function shareApi(target, img, content, url) {
switch (target) {
case 0:
return "http://v.t.sina.com.cn/share/share.php?pic=" + img + "&title=" + content + "&url=" + url + "&rcontent=";
case 1:
return "http://v.t.qq.com/share/share.php?title=" + content + "&pic=" + img + "&url=" + url;
case 2:
return "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=" + content + "&pics=" + img + "&url=" + url;
case 3:
return "http://share.renren.com/share/buttonshare.do?title=" + content + "&link=" + url + "&rcontent=";
case 4:
return "http://www.kaixin001.com/repaste/share.php?rtitle=" + content + "&rurl=" + url + "&rcontent=";
case 5:
return "http://www.douban.com/recommend/?title=" + content + "&url=" + url + "&rcontent=";
default:
return "http://v.t.sina.com.cn/share/share.php?pic=" + img + "&title=" + content + "&url=" + url + "&rcontent=";
}
}
新浪微博 腾讯微博 qq空间 人人 开心 豆瓣
使用: window.open(url,"_blank","scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes")