grazie mille!
basta questo:
che funziona con tutte le ultime versioni dei browser ma non con l'ultimissima di netscape.Codice PHP:
if (navigator.userLanguage) {theAgent = navigator.userLanguage;} else {theAgent = navigator.language;}
if (theAgent.indexOf('en') != -1) {location.href = "http://www.google.com";}
if (theAgent.indexOf('fr') != -1) {location.href = "http://www.google.fr";}
if (theAgent.indexOf('es') != -1) {location.href = "http://www.google.es";}
if (theAgent.indexOf('de') != -1) {location.href = "http://www.google.de";}
if (theAgent.indexOf('it') != -1) {location.href = "http://www.html.it";}
Qualcuno mi può dare una mano per aumentare la compatibilità di questo script?
Grazie