PDA

View Full Version : 4.10 - Banner plugin HTML doesn't work with javascript



Morgan Bohman
January 17, 2013, 11:15 AM
Hi,
If I add a banner with html, using source, which contains javascript like this:

<script type="text/javascript">var TDIframe = TDIframe || {counter : 0, newTDId : function(){return 'TDId' + (this.counter += 1);}};TDIframe.url = 'http://anetse.xxxxxxx.com/anet-' + Math.random().toString().substring(2, 11) + '?type(iframe)loc(123456)';TDIframe.id = TDIframe.newTDId();document.write('<iframe id="' + TDIframe.id + '" src="" width="250" height="360" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');document.getElementById(TDIframe.id).src=TDIfra me.url;</script>
After saving it will go back to Image in the banner settings.

How can I fix this?

//Morgan