User Profile

Collapse

Profile Sidebar

Collapse
gdicks
gdicks
Last Activity: Feb 26 '10, 10:45 PM
Joined: Feb 23 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gdicks
    replied to Script only works in one URL
    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.
    See more | Go to post

    Leave a comment:


  • gdicks
    replied to Script only works in one URL
    I tried it but it didnt work...
    See more | Go to post

    Leave a comment:


  • gdicks
    replied to Script only works in one URL
    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"
    ...
    See more | Go to post

    Leave a comment:


  • gdicks
    replied to Script only works in one URL
    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...
    See more | Go to post

    Leave a comment:


  • gdicks
    started a topic Script only works in one URL

    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>
    The script works fine as long as the page is served from http...
    See more | Go to post
    Last edited by Dormilich; Feb 24 '10, 12:38 PM. Reason: Please use [code] tags when posting code

  • gdicks
    started a topic Script only works on one URL
    in Java

    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...
    See more | Go to post
No activity results to display
Show More
Working...