[WTB] Simple JAVAScript / PHP Edit...

Discussion in 'Programming' started by Neo_The_One, Mar 3, 2009.

  1. #1
    Hello,

    I want to show targeted ads on my site with help of this post:
    http://www.niharsworld.com/2008/02/18/geo-target-ads-based-on-visitors-location/

    As i dont know how to edit the JAVA script below i need some help with it.

    I want to show different ads to different users so..
    I want to be able to add as many countries as i want like:

    US
    UK
    AU
    NO (norway)

    The below example only shows 1 country than the alternative ad

    <script language="JavaScript">
    
    var country_code = geoip_country_code();
    
    if (country_code == "US" || country_code == "CA"){ // change the country code as per your req.
    
    Your Ad here Country specific (USA or Canada)
    
    }else{
    
    Your Ad here Country specific (NON USA or Canada)
    
    }
    </script>
    PHP:
    I would also need to include "javascript" within the ad it self. So if you have an idea how i can implant this to a blogger Blog but maybe to rewrite it to be in PHP instead.

    And maybe that i have it on a other server than the blogger Blog. It would work to, and maybe that if the country is US it gets a file named:
    us.php < where i can add the add it self. ?

    Please post your ideas and PRICE?

    I need this done as soon as possible.

    Thanks!
     
    Neo_The_One, Mar 3, 2009 IP
  2. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    I can do this for you no problem, I'll send you a PM.
     
    carolynheath, Mar 3, 2009 IP