I've looked and searched everywhere and I just can't fine a working script like this.
What I need is a banner rotator that shows certain banners for specific countries.
Example:
Using this: http://j.maxmind.com/app/geoip.js
To get users country code.
I've used and know how to do if/else scripts for java&html but I just don't understand how to find then use the visitors country in the if statement.
This script is for CPA offers, so its important to show the right offer to the right country.
If anyone can help me that would be awesome, I've been Googling this every which way I can think of and I just can't get it.
What I need is a banner rotator that shows certain banners for specific countries.
Example:
Code:
if (country = "US"
{
<img src="show US Banner"/>
}
else if (country = "UK")
{
<img src="show UK Banner/">
}
etc etc
To get users country code.
I've used and know how to do if/else scripts for java&html but I just don't understand how to find then use the visitors country in the if statement.
This script is for CPA offers, so its important to show the right offer to the right country.
If anyone can help me that would be awesome, I've been Googling this every which way I can think of and I just can't get it.