Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » Integration of advertising tags

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1107 Views
  • Thomashv
    Community Member
    32 Posts

    Integration of advertising tags Link to this post

    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&amp;pid=0&amp;random='+Math.floor(89999999*Math.random()+10000000)+'&amp;millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></scr'+'ipt>');

    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?


  • 3dgoo
    Community Member
    133 Posts

    Re: Integration of advertising tags Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.