分享到微博
function postToWb(){
var _t = encodeURI(document.title);
var _url = encodeURIComponent(document.location);
var _appkey = encodeURI('appkey');//你从腾讯获得的appkey
var _pic = encodeURI('');//(例如:var _pic='图片url1|图片url2|图片url3....)
var _site = '';//你的网站地址
var
_u =
'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;
window.open(
_u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no,
scrollbars=no, location=yes, resizable=no, status=no' );
}
分享到QQ空间
href="javascript:void(0);"
οnclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));return
false;" title="分享到QQ空间">