ie中如何判断操作系统具体版本? 大家都知道互联网中可以判断操作系统的版本(windows 2000,windows xp),有没有可能判断操作系统的具体版本呢?如windows 2000 professional,windows 2000 server和sp版本???代码是什么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 2个例子.自己看. var nav=window.navigator.userAgent; var osVFull=nav.split(";")[2]; var osV=osVFull.substr(osVFull.length-3,3); switch(osV) { case "5.0": alert("是2000系统"); break; case "5.1": alert("是xp系统"); break; case "5.2": alert("是03系统"); break; } function checkBrowser() { this.ver=navigator.appVersion this.dom=document.getElementById?1:0 this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.mac=(this.ver.indexOf('Mac') > -1) ?1:0; this.ope=(navigator.userAgent.indexOf('Opera')>-1); this.ie=(this.ie6 || this.ie5 || this.ie4) this.ns=(this.ns4 || this.ns5) this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns5 || this.ns4 || this.mac || this.ope) this.nbw=(!this.bw) return this; } alert(var nav=window.navigator.userAgent); 按回格(删除)键会返回上一页,怎么屏蔽 一个文章列表页(里面有10编文章),一个文章内容页(底部可以留言) 为什么我用toJSONString()有错????? 鼠标指向更换flash,怎么做啊?大家帮忙啊 在web对话框中怎样得到打开它的父窗口的标题、状态拦内容等信息? 请问各位高手,怎样实现类似于“正在登陆,请稍侯....”的效果! 如何在连接上点击左键也能弹出"另存为"的窗口? 如果使一个页面每三十秒刷新一次 怎样打印不同FRAME的内容? 老顽疾:如何判断页面刷新、关闭、跳转? javascript 缺少对象 帮忙写段JS控制COOKIE的代码~在线等!
var nav=window.navigator.userAgent;
var osVFull=nav.split(";")[2];
var osV=osVFull.substr(osVFull.length-3,3);
switch(osV)
{
case "5.0":
alert("是2000系统");
break;
case "5.1":
alert("是xp系统");
break;
case "5.2":
alert("是03系统");
break;
}
function checkBrowser()
{
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.mac=(this.ver.indexOf('Mac') > -1) ?1:0;
this.ope=(navigator.userAgent.indexOf('Opera')>-1);
this.ie=(this.ie6 || this.ie5 || this.ie4)
this.ns=(this.ns4 || this.ns5)
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns5 || this.ns4 || this.mac || this.ope)
this.nbw=(!this.bw)
return this;
}