Forum Moderators: coopster
Here is the code
<script language='javascript' type="text/javascript">
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random());
phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='javascript' type='text/javascript' src='");
document.write ("http://www.example.com/adserve_rot.php?n=" + phpAds_random);
document.write ("&invoke=js");
document.write ("&type=banner");
document.write ("&aff=");
document.write ("&exclude=" + document.phpAds_used);
if (document.referer)
document.write ("&referer=" + escape(document.referer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a
href='http://www.example.com/adclick.php?n=6034c6'><img
src='http://www.example.com/adserve_rot.php?n=6034c6&type=banner&aff='
border='0' alt=''></a></noscript>
Anyone know how I can echo that so it actually displays?
Thanks all
Dylan
[edited by: dreamcatcher at 8:21 am (utc) on June 18, 2007]
[edit reason] Exemplified urls. [/edit]
Try building the document.write strings into another variable, and then sending that variable to alert(); to verify what it's trying to read. (It is easier to read your raw logs, if you have access).
Check if that new URL is working properly - it should return some javascript - not a 404 page not found error.
Do you get any javascript errors when you access the page?