3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 933 Views |
-
Integration of advertising tags

22 September 2010 at 8:15pm
I'm running silverstripe version 2.4 with following encoding and doctype definition:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" >Now I am trying to implement some tags from my advertising system AdvertPro, but I can't get the script part to work. It looks like this:
<script language="JavaScript" type="text/javascript">
<!--
document.write('<scr'+'ipt src="http://ads.advertpro.no/advertpro/servlet/view/banner/javascript/zone?zid=2&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></scr'+'ipt>');
//-->
</script>But the ads does not display. If I use the noscript advertising tags, it works... But then I get limited functionality to the zone.
Anyone having any ideas to how this can be solved?
Thanks!
-
Re: Integration of advertising tags

24 September 2010 at 1:05pm
Have your tried checking the console using firebug to see if any errors come up?
Try changing document.write() to alert() to make sure the correct code is being generated.
| 933 Views | ||
|
Page:
1
|
Go to Top |


