I just finished putting my website up, and it occurred to me that some of you guys might find a bit of code useful that I'm using for Google+, Twitter, and Facebook.

I put it in a little table, like you can see here on my site. Davis Auto and RV Detailing and Sales - Bozeman and Belgrade, Gallatin Valley Montana.

It's a way for people to post your site or page directly to these social media locations from the page itself.

Here's the table code to put into your html (NOTE - this has placeholders for your twitter id, website location, etc., so change those.)

<table width="150" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top"><!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="medium" data-href="http://www.YOURWEBSITE.com"></div>
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(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></td>
<td width="25" valign="top"><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.YOURWEBSITE.com" data-via="TWITTERHANDLE" data-hashtags="HASHTAG">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);j s.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}} (document,"script","twitter-wjs");</script></td>
<td width="26" valign="top"><div class="fb-like" data-href="http://www.YOURWEBSITE.com" data-send="false" data-layout="button_count" data-width="120" data-show-faces="true" data-colorscheme="light" data-font="trebuchet ms">&nbsp;&nbsp;&nbsp;</div></td>
<td width="26" align="left" valign="top">&nbsp;&nbsp;&nbsp;</td>
</tr>
</table>

THIS GOES before your </head> tag in the code.

<script>(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#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>