SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Display an overlay window based on IP

    Hi,

    1. I have integrated an overlay window onto my website which you can see here www.bathroomwarehouse.com.au/bw-proof.html. That window shows up to all visitors when the page loads. What I would like to do is to have this window appear only for a specific state of Australia (Western Australia). This script would detect the IP of the person visiting that page and if that person is located in WA, the window comes up. Where can I start searching and can anyone give me advice on how to develop it? (I already have the database for GeoIP location of Australia).

    2. On that same window, there is also a checkbox that can be checked when a visitor wants to be remembered the next time he visits that same page. If he checks it, the window won't show up the next times he visits it. Any advice?

    Any help or advice will be greatly appreciated.

    Thanks in advance.

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    1. Does it contain IPs for WA?

    2. Use a cookie

  3. #3
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your reply.

    Yes it does contain IPs (start IP and end IP) of cities located in WA.

    That would be great if you could give me a starter on how to use cookie.

    Thank you


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •