Enabling Tradedoubler Link for PHP Site

Advert test
#1
Hi All,

I am having difficulty converting a Tradedoubler Script in a PHP enabled Script for one of our sites.

Here is the code
<script type="text/javascript">
var uri = 'http://impie.tradedoubler.com/imp?type(js)g(19073644)a(1765141)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset=""></sc'+'ript>');
</script>

I have tried adding \" instead of " in all instances.

Should I also do the same for the single quotes. ie ' becomes \'

Any help would be greatly appreciated.
 
Top