facebook 分享 js

<html>
<head> 
<meta property="og:image" content="http://www.huitu.com/design/show/20130116/142820494200.html?_t_t_t=0.7526275933756319" /> 
<meta property="og:description" content="test>" /> 
<meta property="og:url" content="https://www.baidu.com" /> 
 
</head>
<body>
<h2>Hello World!</h2>

<a style="display:inline-block;width:35px; height:40px; position:relative; top:10px; left:48px; " 
title="Share on Facebook" target="_blank" 
οnclick="javascript:window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent('https://www.baidu.com')+'&t='+encodeURIComponent(document.title), 'newWindow', 'width=800, height=400','center');void(0);">分享到facebook</a>

<br>
<br>
<a href="javascript:window.open('http://twitter.com/home?status='+encodeURIComponent('https://image.baidu.com')+' '+encodeURIComponent('aaaaaa'),'_blank','toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=600, height=450,top=100,left=350');void(0)" >twitter分享</a>

<br>
<br>
<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark"  data-pin-shape="round" data-pin-height="28">pinterest分享</a>
<script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js">
</script>

<div style="float:right;">
    <!-- Place this tag where you want the +1 button to render -->
    <g:plusone></g:plusone>
    <!-- Place this tag after the last plusone tag -->
    <script type="text/javascript">
        window.___gcfg = {lang: 'zh-CN'};
        (function() {
            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
            po.src = 'https://apis.google.com/js/plusone.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
        })();
    </script>
</div>
</body>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值