i want to add this code to my simplepress forum
[ Code edited with backticks. Moderator note: when sharing code examples, please wrap the code in backticks or use the code button. ]
<script type="text/javascript">
if (typeof(ord)=='undefined') ord=Math.floor(Math.random()*10000000000000000);
if (typeof(tile)=='undefined') tile=1;
document.write('<scr'+'ipt language="JavaScript" src="http://ad.doubleclick.net/adj/hola.somosguatemala/_default;sz=160x600;tile=' + (tile++) + ';ord='+ ord + '?" type="text/javascript"></scr' + 'ipt>');
</script>
so i did this to it but it doesnt work i get an error what should i do to have it show up?
echo '<script type="text/javascript">
if (typeof(ord)=='undefined') ord=Math.floor(Math.random()*10000000000000000);
if (typeof(tile)=='undefined') tile=1;
document.write('<scr'+'ipt language="JavaScript" src="http://ad.doubleclick.net/adj/hola.somosguatemala/_default;sz=160x600;tile=' + (tile++) + ';ord='+ ord + '?" type="text/javascript"></scr' + 'ipt>');
</script>';