Hi,
I'm using the yahoo mod & trying to impliment the following javascript in my header.
The header is setup in templates.cfg
Here is the code i'm trying to run on home.html
For the variable:
$site_header = '<script language="JavaScript" type="text/javascript" src="http://www.mydomain.com/adserver/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.mydomain.com/adserver/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:2");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href=http://www.mydomain.com/...click.php?n=a45028c4 target="_blank"><img src=http://www.mydomain.com/...2&n=a45028c4 border="0" alt=""></a></noscript>';
I assume the ' and ; in the above code is messing up the parser..
Any ideas on getting this working in my header?
I'm using the yahoo mod & trying to impliment the following javascript in my header.
The header is setup in templates.cfg
Here is the code i'm trying to run on home.html
For the variable:
$site_header = '<script language="JavaScript" type="text/javascript" src="http://www.mydomain.com/adserver/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.mydomain.com/adserver/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:2");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href=http://www.mydomain.com/...click.php?n=a45028c4 target="_blank"><img src=http://www.mydomain.com/...2&n=a45028c4 border="0" alt=""></a></noscript>';
I assume the ' and ; in the above code is messing up the parser..
Any ideas on getting this working in my header?