php 實現分享到QQ空間 新浪微博

來源:互聯網
上載者:User
//分享到新浪微博
//分享到新浪微博            $('#blog').click(function(){                window.sharetitle = '<%$info.title%>';//標題                window.shareUrl = '__IMG__<%$info.img.0.url%>';//縮圖                share();            });            function share(){                //d指的是window                (function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(window.sharetitle),'&appkey=2924220432','&pic=',e(window.shareUrl)].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent);            }
//分享到QQ空間
 
//分享到QQ空間            $("#zone").click(function(){                var p = {                    url:location.href,                    showcount:'1',/*是否顯示分享總數,顯示:'1',不顯示:'0' */                    desc:'',/*預設分享理由(可選)*/                    summary:'我在【空間家】上找到一個好位置,地段好又划算,快來看看吧。',/*分享摘要(可選)*/                    title:'<%$info.title%>',/*分享標題(可選)*/                    site:'空間家',/*分享來源 如:騰訊網(可選)*/                    pics:'__IMG__<%$info.img.0.url%>', /*分享圖片的路徑(可選)*/                    style:'203',                    width:98,                    height:22                };                var s = [];                for(var i in p){                    s.push(i + '=' + encodeURIComponent(p[i]||''));                }                window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?"+s.join('&'));            });
QQ互聯(介面相關): QQ互聯

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.