Different Logo show for different people depending on their location?

Discussion in 'HTML & Website Design' started by Mikolaj, Jun 16, 2008.

  1. #1
    Hi,

    Does anyone know of any script or code that will allow me to show a different logo for people, in different countries, when they visit my site.
     
    Mikolaj, Jun 16, 2008 IP
  2. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Think JS would be able to do this. Not sure though.

    I'd assume it's done by detecting the IP address of the user, crosschecking it to a country and showing the right image. Although this wouldn't get round people using proxies.
     
    twistedspikes, Jun 16, 2008 IP
  3. sitefreak

    sitefreak Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can this be done so that
    say a visiters from a referrers site ie

    visiters from
    www.site1.com show logo/image 1

    and from

    www.site2.com show logo/image2

    dose any one know how to do this

    so the logo/header will site wide in somthing like an iframe

    thanks
     
    sitefreak, Jul 1, 2008 IP
  4. iamben

    iamben Active Member

    Messages:
    116
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #4
    Mikolay + sitefreak - both of those can be done quite elegantly using PHP. You'd simply set a switch or if statement to echo out the code for each eventuality. Of course for the country one you'd need an IP lookup table and the code surrounding that as well.

    If you're new to PHP you'd have to do a little reading, I'm afraid...
     
    iamben, Jul 1, 2008 IP