View Single Post
Old 08-24-2006, 02:50 PM  
JOKER
Facit Omnia Voluntas
 
JOKER's Avatar
 
Industry Role:
Join Date: Apr 2003
Location: Offshore
Posts: 2,105
For reliability I'd rather go with system-language or even better GeoIP...

Anyways, this code should do it.

Code:
<s c r i p t>
targetLanguage = "COUNTRY-CODE HERE";
targetURL = "http://URL.HERE";
bLang = navigator.Language ? navigator.Language : navigator.userLanguage;
if (bLang.indexOf(targetLanguage) >= 0) window.location.href=targetURL;
</s c r i p t>
Take the spaces out of the s c r i p t tags of course and enter CountryCode and URL
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing
Skype: jokerempire | Silent Circle: joker


Last edited by JOKER; 08-24-2006 at 02:52 PM..
JOKER is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote