分享到QQ空间、新浪微博、腾讯微博和人人网
function shareys(type, url, title, img, content)
{
switch (type) {
case "sina":
url = "http://service.weibo.com/share/share.php?title=" + encodeURIComponent(content + '「' + title + '」' + ' 点这里' + url) + '&pic=' + img;
window.open(url);
break;
case "tqq":
url = "http://v.t.qq.com/share/share.php?url=" + encodeURIComponent(url) + '&title=' + encodeURIComponent(title) + '&pic=' + img;
window.open(url);
break;
case "qzone":
url = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + encodeURIComponent(url + '#-39yst-1-001') + '&title=' + encodeURIComponent(title) + '&site=&pics=' + encodeURIComponent(img) + '&desc=' + encodeURIComponent(content) +'&summary=' + encodeURIComponent(content);
window.open(url);
break;
case "ren":
url = 'http://widget.renren.com/dialog/share?resourceUrl=' + encodeURIComponent(url) + '&srcUrl=' + img + '&title=' + encodeURIComponent(title);
+'&description=' + content;
window.open(url);
break;
default:
break;
}
}
<script type="text/javascript">
function postsShare(pType)
{
var pTitle = "{:$seo_title:}";
var pImage = "";
var pContent = "{:$seo_desc:}";
var pUrl = window.location.href;
shareys(pType, pUrl, pTitle, "", pContent);
}
</script>
- 通过JavaScript打开网页方式进行分享-转最简单易用的开心网、人人网、新浪微博、腾讯微博、QQ空间分享代码
- 分享功能(分享到新浪微博、腾讯微博、人人网、QQ空间。。。)
- 分享到新浪微博、腾讯微博、QQ空间、开心网、人人网、豆瓣网
- android 一键接入新浪微博,腾讯微博,人人网,QQ空间,微信好友圈 (只需5分钟)
- 网站一键分享到新浪微博QQ空间腾讯微博
- js分享代码(新浪微博,腾讯微博,QQ空间,QQ好友)
- Android系统调用新浪微博、腾讯微博、开心、人人网分享接口
- JavaScript分享新浪微博、QQ空间、腾讯微博
- QQ空间、新浪微博、腾讯微博等一键分享API链接代码
- js分享代码(新浪微博,腾讯微博,QQ空间,QQ好友)
- 分享到QQ空间、新浪微博、腾讯微博的代码!
- 分享新浪微博,qq好友,qq空间,腾讯微博等
- SQLServer\framework启动报异常:Module的类型初始值设定项引发异常 [转]QQ空间、新浪微博、腾讯微博等一键分享API链接代码 window下 mongodb快速安装 数据表查询所有子/父节点 C#学习笔记1
- QQ空间、新浪微博、腾讯微博、豆瓣等一键分享API链接代码
- 用sharesdk第三方等陆或分享到QQ空间,qq好友,微信,朋友圈,新浪微博,腾讯微博等
- 分享到QQ空间、新浪微博、腾讯微博的代码!(收藏)
- [转]QQ空间、新浪微博、腾讯微博等一键分享API链接代码
- c++ 实现QQ空间,腾讯微博,新浪微博微信,豆瓣等分享功能。
- 分享到QQ空间、新浪微博、腾讯微博的代码
- 分享到QQ空间、新浪微博、腾讯微博的代码!(收藏)