搜索

最新评论

友情博客

RSS

我的 Blog:
hahasmile 最新的 20 条日志
[转载文章]
[技术文章]
[美工]
[全部都是我!]
全站 Blog:
全站最新的 20 条日志
 
判断浏览器版本

<script language="javascript">
if(navigator.appName == "Microsoft Internet Explorer")
{
  if(navigator.appVersion.match(/6./i)=='6.')
  {
    window.open('ie6_page.htm','MSIE6');
  }else{
    window.open('ie_page.htm','MSIE');
  }
}

if(navigator.appName == "Netscape")
{
  if(navigator.appVersion.match(/4./i)=='4.')
  {
    window.open('ns4_page.htm','NS4');
  }else{
    window.open('ns_page.htm','NS');
  }
}

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

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