Script only works on one URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gdicks
    New Member
    • Feb 2010
    • 6

    Script only works on one URL

    I am trying to write a scriupt to serve ad slot for each region. URL's are generated dynamically. OK, so I have the following code to display the ad (Google Ad Manager)

    <script type="text/javascript">
    if (location.href. substring(75,76 ) == "1")
    {

    GA_googleFillSl ot("Button4");
    }
    </script>

    The script works fine as long as the page is served from http://www.atlanticpor tal.com

    The Problem is that the script wont work with any of the other URL's that I have such as Http://atlanticportal. com or http://www.atlanmticpo rtal.ca

    How can I fix this?
  • pbrockway2
    Recognized Expert New Member
    • Nov 2007
    • 151

    #2
    You've posted in a Java forum. Try JavaScript

    Comment

    Working...