100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > 分享到QQ空间 新浪微博 腾讯微博和人人网

分享到QQ空间 新浪微博 腾讯微博和人人网

时间:2022-04-07 22:51:45

相关推荐

分享到QQ空间 新浪微博 腾讯微博和人人网

function shareys(type, url, title, img, content)

{

switch (type) {

case "sina":

url = "/share/share.php?title=" + encodeURIComponent(content + '「' + title + '」' + ' 点这里' + url) + '&pic=' + img;

window.open(url);

break;

case "tqq":

url = "http://v./share/share.php?url=" + encodeURIComponent(url) + '&title=' + encodeURIComponent(title) + '&pic=' + img;

window.open(url);

break;

case "qzone":

url = 'http://sns./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 = '/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>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。