Hello guys,
Please I have this 4 set of files to display on my pages based on country.
Help me with this codes,
XXXXXXXXXXXXXXXXXXXXXXXXXX
<script language="JavaScript" src="http://j.maxmind.com/app/country.js"></script>
<script language="JavaScript">
var country=geoip_country_code();
if(country == "US"){
document.getElement.href = '/indicators/us.html';
}
if(country == "UK"){
document.getElement.href = '/indicators/uk.html';
}
if(country == "CA"){
document.getElement.href = '/indicators/ca.html';
}
else{
document.getElement.href = '/indicators/soon.html';
}
</script>
XXXXXXXXXXXXXXXXXXXXXXXXX
I cant get it to work for me. Or maybe it should be in PHP
Am placing it in the HTML block.
Am a newbie please