主页 > 专题教程 > javascript > js代码片段 >
来源:未知 时间:2018-03-08 14:28 作者:小飞侠 阅读:次
[导读] scripttype=text/javascriptvarlanguage=navigator.browserLanguage?navigator.browserLanguage:navigator.language;alert(language);if(language.indexOf(en)-1)document.location.href=english.htm;elseif(language.indexOf(nl)-1)document.location.href=d...
<script type="text/javascript"> var language = navigator.browserLanguage?navigator.browserLanguage:navigator.language; alert(language); if (language.indexOf('en') > -1) document.location.href = 'english.htm'; else if (language.indexOf('nl') > -1) document.location.href = 'dutch.htm'; else if (language.indexOf('fr') > -1) document.location.href = 'french.htm'; else if (language.indexOf('de') > -1) document.location.href = 'german.htm'; else if (language.indexOf('ja') > -1) document.location.href = 'japanese.htm'; else if (language.indexOf('it') > -1) document.location.href = 'italian.htm'; else if (language.indexOf('pt') > -1) document.location.href = 'portuguese.htm'; else if (language.indexOf('es') > -1) document.location.href = 'Spanish.htm'; else if (language.indexOf('sv') > -1) document.location.href = 'swedish.htm'; else if (language.indexOf('zh') > -1) document.location.href = 'chinese.htm'; else document.location.href = 'english.htm'; </script> |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com