XF 2.2 Javascript into Page Container doesn't work

darkeye

Member
Hi, I want to build in a javascript code into the header. I tried some times to put the following code in several places in Page Container, but it doesn't work and I get errors. What else I can do?

<!-- Revive Adserver JavaScript-Tag - Generated with Revive Adserver v5.1.1 -->
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://www.domain-online.com/Ads/w...domain-online.com/Ads/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=1");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
//]]>--></script><noscript><a href='http://www.domain-online.com/Ads/www/delivery/ck.php?n=ab49d7e1&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.domain-online.com/Ads/ww...p;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=ab49d7e1' border='0' alt='' /></a></noscript>
 
Top