分享代码

<div align="right">
<table border="0" cellspacing="3" cellpadding="0" width="150px" style="width:150px;">
  <tbody><tr>
    <td><a href="javascript:void((function(s,d,e,r,l,p,t,z,c){var f='http://t.sohu.com/third/post.jsp?',u=z||d.location,p=['&url=',e(u),'&title=',e(t||d.title),'&content=',c||'gb2312','&pic=',e(p||'')].join('');function%20a(){if(!window.open([f,p].join(''),'mb'))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent,'','','','','','utf-8'));" title="分享到搜狐微博"><img height="17px" width="17px" src="images/default/share1.gif"></a></td>
    <td><a href="javascript:void(0)" onclick="jumpUrl('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?')" title="分享给QQ好友"><img height="17px" width="17px" src="images/default/share3.gif"></a></td>
    <td><a href="javascript:void(0)" onclick="jumpUrl('http://share.renren.com/share/buttonshare?')" title="分享到人人网"><img height="17px" width="17px" src="images/default/share4.gif"></a></td>
    <td><a href="javascript:void(0)" onclick="jumpUrl('http://www.douban.com/recommend/?')" title="分享到豆瓣"><img height="17px" width="17px" src="images/default/share5.gif"></a></td>
    <td><a href="javascript:void(0)" onclick="jumpUrl('http://tieba.baidu.com/i/sys/share?')" title="分享到i贴吧"><img height="17px" width="17px" src="images/default/share6.gif"></a></td>
    <td><a href="javascript:void(0)" onclick="jumpUrl('http://go.139.com/ishare.do?')" title="免费分享到手机"><img height="17px" width="17px" src="images/default/share7.gif"></a></td><td><a href="javascript:void(0)" onclick="jumpUrl('http://service.t.sina.com.cn/share/share.php?')" title="分享到微博"><img height="17px" width="17px" src="http://i2.itc.cn/20110426/7c2_ebf9c59b_8cdf_a522_dc23_de88bf468536_1.gif"></a></td>
  </tr>
</tbody></table>
</div></div>
<script type="text/javascript">
     function jumpUrl(url){
   /*var pic='http://zone.it.sohu.com/forums/images/index2011/logo.gif';
            var _t = encodeURIComponent(document.title);//页面标题
            var _url = encodeURIComponent(document.location.href);//页面URL
            var _pic = encodeURI(pic?pic:'');//图片地址
            var _site = 'zone.it.sohu.com';//你的网站地址
            var _u = url+'title='+_t+'&link='+_url+'&site='+_site+'&pic='+_pic;*/
   var _u = url+'url='+encodeURIComponent(document.location.href)+'&link='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
            window.open(_u);
 
        }
</script>

转载于:https://my.oschina.net/hosir/blog/129207

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值