[TYPO3-windows] Solution for Adding the Digg Button Javascript Include in Typo3 Page Head

Shade oxytechx at gmail.com
Tue Jul 6 17:56:51 CEST 2010


Guys, thanks for your comments, when I tried to copy and paste your snippets
it was not working very well and the page body was showing a bracket ( in
the front end page display.  Eventually, managed to get it working by using
similar examples online and this was the end code snippet:

page.headerData.10 = HTML
page.headerData.10.value (
<script type="text/javascript">
<!--
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName
('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
//-->
</script>
)

*
*
*Thanks.*
*
*
*J*


More information about the TYPO3-windows mailing list