Forum Moderators: open
I have first a call to the axs tracking script, then a call to phpadsnew. I would like to have another phpadsnew slot beneath the former.
I understand it's not a good idea to use too much js, I am just trying to make my ad management less of a time-consuming chore.
Toss in "alert" every step of the way so you can see what you are actually getting for values, versus what you think you are getting.
As far as I know there is no limit to the amount of javascript on a page.
I have some pages where the javascript is actually more code than the HTML!
Does this make sense to anyone? I'm using I.E. 5.01. And secondly are the comments at all necessary for the scripts to function? In there ordinary state the whole bit is:
<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.mysite.com/phpadsnew/adjs.php?n=" + phpAds_random);
document.write ("&clientid=1");
document.write ("&exclude=" + document.phpAds_used);
if (document.referer)
document.write ("&referer=" + escape(document.referer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mysite.com/phpadsnew/adclick.php?n=abdead03'><img src='http://www.mysite.com/phpadsnew/adview.php?clientid=1&n=klsdk00' border='0' alt=''></a></noscript>
I remove <!-- and //-->
Thanks.