js 分享qq空间,新浪微博,qq

分享微博 


    title = "要分享的标题(@好友)#主题#";
    rLink = shareurl;
    summary = "新浪微博的内容主题木有用只能有个标题,不开心,求大神指导该咋办教我";
    pic="分享代的图片地址"
    window.open("http://service.weibo.com/share/share.php?&title=" +encodeURIComponent(title.replace(/&nbsp;/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");



基本没啥用,,,,但是也许能用到呢


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值