分享微博
title = "要分享的标题(@好友)#主题#";
rLink = shareurl;
summary = "新浪微博的内容主题木有用只能有个标题,不开心,求大神指导该咋办教我";
pic="分享代的图片地址"
window.open("http://service.weibo.com/share/share.php?&title=" +encodeURIComponent(title.replace(/ /g, " ").replace(/<br \/>/g, " "))+ "&url=" + encodeURIComponent(rLink)+"&source="+encodeURIComponent(summary)+"&pic="+encodeURIComponent(pic),"_blank","height=500,width=1000,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no, status=no");
分享qq空间
title = "要分享的标题";
rLink =点击进入的地址;
site = "分享来源站";
summary = "主体内容这个是有效的";
pic="分享带的图片地址"
window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title='+
encodeURIComponent(title)+'&url='+encodeURIComponent(rLink)+'&site='+encodeURIComponent(site)+'&summary='+encodeURIComponent(summary)+"&pics="+encodeURIComponent(pic)
,'_blank','scrollbars=no,width=600,height=450,status=no,resizable=yes');
分享qq
var p = {
url:点击进入的地址,
desc:"",
title:'标题,
summary:'内容,
pics:"图片地址"
flash: '',
site:来源站.
style:'201',
width:32,
height:32
};
var s = [];
for(var i in p){
s.push(i + '=' + encodeURIComponent(p[i]||''));
}
console.log(s.join('&'));
window.open("http://connect.qq.com/widget/shareqq/index.html?"+s.join('&'),"_blank");
基本没啥用,,,,但是也许能用到呢