geo javascript and bookmark pop code

I need a piece of code that will check an incoming refers country origin based on a geo list. And also create a cookie so that if this person comes back in a certain time period it doesn't run the code.

My objective is to be able to target popunder code to certain countries and prevent a visitor from seeing it basically every 24 hours.

I don't want for example US advertising hitting a UK visitor nor do I want a visitor getting hit with more then 1 ad if they visit the site 5 times in 1 day.

I would also need to have it setup so that if I have say US, UK, and German ads I can have a text file with the approriate ad code in each and a default for everything else. If at a later time I need a code for France for example all I would need to do is tag all french visitors with the french text file to display that code.

Example code:

Visitor comes to site

Script checks for cookie

-if cookie found then

--check for time

--if time is under x minutes then stop

--if time is over x minutes then replace time with current and continue

if cookie not found then create one with a current time

Then the script checks for country of origin

-if a certain country then display certain code


These are only examples if you have a quicker way to meet my objective I would consider it.

Skills: Javascript

See more: run javascript, objective examples, no code, meet code, javascript advertising, code that, & code, c code examples, ad script examples, geo javascript, 1.5 hours in minutes, objective c code, c++ code examples, prevent, origin , objective c javascript, code, code check, code C, setup geo, setup finish, code create, code check javascript, list code, objective script

About the Employer:
( 1 review ) Pt. Roberts, United States

Project ID: #157205

7 freelancers are bidding on average $62 for this job


Check PM for details of our propossal

$100 USD in 1 day
(4 Reviews)

Professional work from professionals!

$100 USD in 6 days
(31 Reviews)

Regional ad to display once a day.

$30 USD in 1 day
(9 Reviews)

we can do it

$50 USD in 2 days
(11 Reviews)

Greetings! Please check the PM, will be done in 30 minutes.

$30 USD in 0 days
(7 Reviews)

Please check PMB

$50 USD in 1 day
(1 Review)

Hello sir, I am Yasir from Pakistan. I have read and understand what you actually want to have from me. I have all the required skills. I am experienced with PHP, MySQL, javascript and Ajax. Please give me a try and More

$75 USD in 3 days
(0 Reviews)