Google +1, breaks every time I click it. Using Google's code. Why's it breaking

pitabread

New Member
I'm just starting to integrate some Social media "sharing" into a website, the first being the Google +1 button.I've taken the code straight out of Google's webmasters dashboard, put it in following all the instructions, and it's breaking when ever I try to click the +1I've got it 'live' at:http://www.techonline.co.nz/modules/navigator/navto.php?unique_ID=16The button itself is here:\[code\]<td style="width: 33%; text-align: center;"> <div class="g-plusone" data-annotation="inline" data-width="130" data-href="http://stackoverflow.com/questions/12763139/#">Google +1</div></td>\[/code\]And the Javascript form Google at the bottom of the '\[code\]<script type="text/javascript">// <![CDATA[ (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>\[/code\]The CDATA thing is an autotidy from TinyMCE. No idea what it does either, but It has not stopped any other Javascripts from working on my site. And the code in this instance still executes because the button's display.Can anyone tell me why it's breaking, like have I got the wrong
 
Back
Top