转发到新浪微博QQ腾迅微博代码

来源:互联网 发布:c 常量字符串数组 编辑:程序博客网 时间:2024/04/26 08:05
<span class="pipe">|</span><a href="javascript:void(0)" onclick="postToWb();" class="tmblog"><img src="http://v.t.qq.com/share/images/s/weiboicon16.png"></a> <script type="text/javascript">function postToWb(){var _t = encodeURI(document.title);var _url = encodeURI(document.location);var _appkey = encodeURI("appkey");//你从腾讯获得的appkeyvar _pic = encodeURI('http://localhost:8080/JSYD/image0705/group0312/group_ok.jpg');//(列如:var _pic='图片url1|图片url2|图片url3....)var _site = '';//你的网站地址var _u = 'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;window.open( _u,'转播到腾讯微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );}</script><script>var pic=encodeURI('http://localhost:8080/JSYD/image0705/group0312/group_ok.jpg'); /**分享图片的路径(可选)*/var title='1233444';document.writeln("<a href=\"javascript:window.open(\'http:\/\/v.t.sina.com.cn\/share\/share.php?title=\'+encodeURIComponent(title)+\'&url=\'+encodeURIComponent(location.href)+\'&rcontent=\'+'&pic='+pic,\'_blank\'); void 0\" style=\"color:#000000;text-decoration:none;font-size:12px;font-weight:normal\"><IMG alt=转发到新浪微博 src=\"http:\/\/t.sina.com.cn\/favicon.ico\" align=absMiddle border=0> 转发到新浪微博<\/a>");</script>

原创粉丝点击