Advertisement:

Author Topic: My banner code...  (Read 3442 times)

Offline madfiddler

  • Full Member
  • ***
  • Posts: 667
  • Gender: Male
  • Flit Kills Moths
    • madfiddler
My banner code...
« on: March 30, 2004, 07:16:37 PM »
Hiya,

Although working... This generates a javascript error... Any ideas, I'm not a programmer.

<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);
// --></script>

The banner is displaying with this...

<a href="http://www.fiddleforum.com/banners/adclick.php?n=a5b060cf" target="_blank"><img src="http://www.fiddleforum.com/banners/adview.php?what=zone:1&n=a5b060cf" width="234" height="30" border="0" alt=""></a>

However.... I left part of the script out as it caused template errors...

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.fiddleforum.com/banners/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:1");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referer)
      document.write ("&amp;referer=" + escape(document.referer));
   document.write ("'><" + "/script>");

Any help appreciated,

Thanks,

Mark.
« Last Edit: March 30, 2004, 07:23:02 PM by madfiddler »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: My banner code...
« Reply #1 on: March 30, 2004, 07:41:04 PM »
Change any ' in the code to a \'.

-[Unknown]