var win;
if(window.clientInformation.systemLanguage)
 win= window.clientInformation.systemLanguage;  
else
 win = window.navigator.language; 
if (win.substring(0,3)=="zh-")   {   
window.navigate("index_cn.html");   //轉向中文網頁   
}else{
window.navigate("en/index.html");   //轉向英文網頁   
}   
</script> 

解决方案 »

  1.   

    只要判断下var win = window.clientInformation.systemLanguage;或win = window.navigator.language;  就可以兼容了
      

  2.   

    if(window.clientInformation.systemLanguage)
    firefox出错:
    window.clientInformation has no properties请帮我再看一下,谢谢。
      

  3.   

    <script>
    if (navigator.appName == 'Netscape')
    var language = navigator.language;
    else
    var language = navigator.browserLanguage
    if (language.substring(0,3)=="zh-"){    
    location.href="index_cn.html";   //轉向中文網頁    
    }else{ 
    location.href="en/index.html";   //轉向英文網頁    
    }    
    </script>
      

  4.   

    <script>
    if (navigator.language)
    var language = navigator.language;
    else
    var language = navigator.browserLanguage;
    if (language.substring(0,3)=="zh-"){    
    location.href="index_cn.html";   //轉向中文網頁    
    }else{ 
    location.href="en/index.html";   //轉向英文網頁    
    }    
    </script>
    这样也可以
      

  5.   

    <html>
    <head>
    <script>var win;
    if(window.clientInformation)
     win= window.clientInformation.systemLanguage;  
    else
     win = window.navigator.language; 
    if (win.substring(0,3)=="zh-")   {   
    location.href="index_cn.html";   //轉向中文網頁   
    }else{
    location.href="en/index.html";   //轉向英文網頁   }   
    </script>  
    </head>
    <body>
    </body>
    </html>
    不好意思