News:

Wondering if this will always be free?  See why free is better.

Main Menu

phpadsnew *blush*

Started by lumom, March 25, 2005, 07:36:51 PM

Previous topic - Next topic

lumom

I know this has been asked here before, but I still can't get it to work.  :-[

I noticed that someone needed someone to re-write their code a little in order for it to work on their site. Will this code work or does it need to be fixed somehow? 

<script language='JavaScript' type='text/javascript' src='http://www.mywebsiteurl.com/phpadsnew/adx.js'></script>
<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.mywebsiteurl.com/phpadsnew/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:1&amp;target=_blank");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mywebsiteurl.com/phpadsnew/adclick.php?n=a99bbdd9' target='_blank'><img src='http://www.mywebsiteurl.com/phpadsnew/adview.php?what=zone:1&amp;n=a99bbdd9' border='0' alt=''></a></noscript>


As I understand it, I should put it somewhere around here:

// Show the menu here, according to the menu sub template.
template_menu();

echo '
</div>';


is that right?  where exactly do I put it?

thank you for your patience.   :-[

Ben_S

Should be fine if you replace all the ' with \' and place it within the echo statement.
Liverpool FC Forum with 14 million+ posts.

lumom

I got it!  ty so much !   :)

Advertisement: