How PHP automatically jumps to the Chinese and English pages:
The code is as follows:
Print ("<meta http-equiv= ' Refresh ' content = ' 0; Url = gb/index.htm ' > '); else Print ("<meta http-equiv=" Refresh ' content = ' 0; Url = eng/index.htm ' > '); ? > HTML Web page different automatic jump multilingual page According to the browser language of the visit &NBSP Add the following code between <script> var type=navigator.appname if (type==) Netscape ") var lang = navigator.language else var lang = navigator.userlanguage //cut down to first 2 chars of country code var lang = lang.substr (0,2) // English if (lang == "en") window.location.replace (' url ') // Simplified Chinese else if (lang == "ZH-CN") window.location.replace (' url ') // Traditional Chinese Else if (lang == "ZH-TW") window.location.replace (' url ') // German else if (lang == "de") Window.location.replace (' URL ') // except for the languages listed above else window.location.replace (' url ') &NBSP </script> |