js 分享qq空间,新浪微博,qq
2015-06-23 18:05
816 查看
分享微博
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");
基本没啥用,,,,但是也许能用到呢
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");
基本没啥用,,,,但是也许能用到呢
相关文章推荐
- 深入浅出jsonp
- JS中自执行的匿名函数
- JavaScript 的性能优化:加载和执行
- 深入浅出jsonp
- js定义对象的两种方法以及js用call来实现类的继承
- JS闭包
- ResponsiveSlides.js最轻量级的幻灯片插件
- js、jq怎么控制文本框只能输入数字
- $.getJson
- 1、使用javascript代码写出一个函数:实现传入两个整数后弹出较大的整数
- JS方法代理
- extjs传递参数
- javascript定义类(class)的三种方法
- JSON vs ProtoBuf vs XML
- extjs动态添加列
- maven 中使用jstl标准标签库
- 【代码片段】javascript下选项卡切换
- 【代码片段】javascript下新增、删除一行/选中文字变颜色
- javascript(浏览器窗口可视区域)
- Json文件/网址解析