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);">分享到facebooka>

<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;">
    
    <g:plusone>g:plusone>
    
    <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>

你可能感兴趣的:(facebook 分享 js)