Created
September 23, 2011 18:04
-
-
Save lsauer/1238036 to your computer and use it in GitHub Desktop.
Social Box for websites with Facebook, Twitter and Google plus one - HTML 4 / 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.socialBoxV, .socialBoxH { { | |
float: right; | |
margin: 15px 20px 0 0; | |
padding: 7px 7px 7px 14px; | |
background-color: #FCF6C4; | |
border-radius: 5px; | |
-o-transition: all 0.7s linear; | |
-moz-transition: all 0.7s linear; | |
-webkit-transition: all 0.7s linear; | |
transition: all 0.7s linear; | |
} | |
/*for a vertical social-box*/ | |
.socialBoxH { | |
margin: 15px 10px 0 0; | |
} | |
.socialBoxH div { | |
display: inline; | |
} | |
</style> | |
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> | |
<script type="text/javascript"> | |
(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) {return;} | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/all.js#appId=168052469944126&xfbml=1"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk')); | |
(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 class="socialBox"> | |
<div><div id="fb-root"></div><fb:like href="http://www.example.net/your/Rest/like/url" send="false" layout="box_count" width="55" show_faces="false" font=""></fb:like></div> | |
<div><a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="YourTwitteraccount">Tweet</a></div> | |
<div><g:plusone size="tall"></g:plusone></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment