First off, I have to say a big thank you for you taking the time to help me out! I really appreciate it. Good Karma for you!
I used the code as you posted it, but when I used your code, I got a pop up asking me to confirm that region =1. Once clicked to confirm, the page displayed properly.
User Profile
Collapse
-
-
OK so I have the following code and it works for each URL, however, it seems rather cumbersome. Is there a way to simplify this by using a relative path perhaps?
Code:<script type="text/javascript"> if (document.location.href.substr(74,75,76) == "1" || location.href == "http://www.atlanticportal.com/AtlanticPortal/en/WhereToStay.aspx?Region=1&Community=0&Category=1&ProvID=1&RegionName=Western"
Leave a comment:
-
I am trying to have change the ads based on the Region. For Example: If region = 1 show ad slot 6.
If you look at the following URL the ads show up at the left hand menu column. http://www.atlanticportal.com/Atlant...onName=Western
but they dont show up in the following url
http://www.atlanticportal.ca/Atlanti...en/WhereToStay...Leave a comment:
-
Script only works in 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)
Code:<script type="text/javascript"> if (location.href.substring(75,76) == "1") { GA_googleFillSlot("Button4"); } </script>
-
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...
No activity results to display
Show More
Leave a comment: