搜索

最新评论

友情博客

RSS

我的 Blog:
hahasmile 最新的 20 条日志
[转载文章]
[技术文章]
[美工]
[全部都是我!]
全站 Blog:
全站最新的 20 条日志
 
如何判断浏览者使用哪种语言文字,然后自动显示该文字的网页

<script language="javascript">
if(navigator.systemLanguage=="zh-tw")
{
  window.open('big5.htm','繁体中文');
}

if(navigator.systemLanguage=="zh-cn")
{
  window.open('cn.htm','简体中文');
}

if(navigator.systemLanguage=="en-us")
{
  window.open('en.htm','英文');
}

if(navigator.systemLanguage=="ja")
{
  window.open('ja.htm','日文');
}

if(navigator.systemLanguage=="ko")
{
  window.open('ko.htm','韩文');
}

window.opener=null;
window.close();
</script>

hahasmile 发表于 2006-7-6  [所属栏目:技术文章 | 返回首页]
小字体中字体大字体
评论(共 {Count} 条)
{CommentAuthor}:
{CommentTime}
{CommentUrl}
{CommentEmail}
{CommentIp}
{CommentContent}