腾讯微博一键转
<img src="http://v.t.qq.com/share/images/s/weiboicon16.png" align="absmiddle"/> <a href="javascript:void(0)" onclick="postToWb('yuyuzi');" style="height:16px;font-size:12px;">转播到腾讯微博</a><script type="text/javascript">
function postToWb(myid){
var neiRong='【'+document.title.replace(/ -重症肌无力病友之家/,'】#重症肌无力病友之家#')+':'+document.getElementById(myid).innerText
var _url = encodeURIComponent(document.location);
neiRong=neiRong.substring(0,150-document.location.href.length);
var _t = encodeURIComponent(neiRong);
var _appkey = encodeURI("e4e942d2773d48ecafb85e81945fdb1e");//你从腾讯获得的appkey
var _pic = encodeURI('http://www.9b01.net/zzjwl/images/logo.gif');//(例如:var _pic='图片url1|图片url2|图片url3....)
var _site = 'http://www.9b01.net';//你的网站地址
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' );
}
</script>
function postToWb(myid){
var neiRong='【'+document.title.replace(/ -重症肌无力病友之家/,'】#重症肌无力病友之家#')+':'+document.getElementById(myid).innerText
var _url = encodeURIComponent(document.location);
neiRong=neiRong.substring(0,150-document.location.href.length);
var _t = encodeURIComponent(neiRong);
var _appkey = encodeURI("e4e942d2773d48ecafb85e81945fdb1e");//你从腾讯获得的appkey
var _pic = encodeURI('http://www.9b01.net/zzjwl/images/logo.gif');//(例如:var _pic='图片url1|图片url2|图片url3....)
var _site = 'http://www.9b01.net';//你的网站地址
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' );
}
</script>
阅读全文
编辑
删除
