复制代码代码如下:
<script type = "text/javaScript">
VAR Language = Navigator.BrowserLanguage? Navigator.BrowserLanguage: Navigator.Language;
alerta (idioma);
if (idioma.indexof ('en')> -1) document.location.href = 'inglés.htm';
else if (lenguaje.indexof ('nl')> -1) document.location.href = 'dutch.htm';
else if (lenguaje.indexof ('fr')> -1) document.location.href = 'francés.htm';
else if (idioma.indexof ('de')> -1) document.location.href = 'alemán.htm';
else if (idioma.indexof ('ja')> -1) document.location.href = 'japonés.htm';
else if (idioma.indexof ('it')> -1) document.location.href = 'italian.htm';
else if (idioma.indexof ('pt')> -1) document.location.href = 'portuguese.htm';
else if (idioma.indexof ('es')> -1) document.location.href = 'español.htm';
else if (idioma.indexof ('sv')> -1) document.location.href = 'swedish.htm';
else if (idioma.indexof ('zh')> -1) document.location.href = 'chino.htm';
demás
document.location.href = 'inglés.htm';
</script>