---
title: "分享到微薄 qq空间 新浪微薄 等分享接口的js代码"
author: "kunbei"
date: "2011-10-15T21:16:56Z"
tags: []
categories: ["Web前端"]
slug: "qq-js"
draft: false
lastmod: "2011-10-15T21:16:56Z"
id: 1197528
url: "https://kunbei.iteye.com/blog/1197528"
---

```java

<script>
function share_wb(type){
 article_title = '桂林首家房地产高端访谈节目 解读热点楼市事件，争议房产界热门话题，注民生经济事件!';
 article_url = 'http://www.guifun.com/zbj/index.html';
 article_desc = '这是一档有鲜明风格的房产访谈节目，从百姓关注的生活出发，透析世间万象、大事小情，寻求各类房产新闻的专业性解读和个性化讲述，带有迅捷的时效性、庞大的信息量和独特的思想见地。';
 var urls = new Array();
 urls[0] = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+article_url; //qq空间
 urls[1] = 'http://v.t.qq.com/share/share.php?title='+encodeURIComponent(article_title)+'&url='+article_url+''; //qq微博
 urls[2] = 'http://service.weibo.com/share/share.php?title='+encodeURIComponent(article_title)+'&url='+article_url+'&source=bookmark&appkey=2992571369&pic=&ralateUid='; //新浪微博
 urls[3] = 'http://www.jiathis.com/send/?webid=email&url='+article_url+'&title='+encodeURIComponent(article_title);
 _url = urls[type];
 window.open(_url,'favit','scrollbars=no,width=480,height=480,left=75,top=20,status=yes,resizable=yes');
 return false;
}

</script>

```