您好,欢迎访问一九零五行业门户网

识别操作系统是不是vista的js代码_javascript技巧

如何用asp来识别操作系统是vista的?我在网上找了个函数,但是不能判断是vista系统,希望大家帮忙.
这个是我在网上找的函数:
function getcurros()
dim info
info = navigator.appversion 
if instr(info,nt 5.1)>0 then
getcurros = windows xp
elseif instr(info,tel)>0 then
getcurros = telport
elseif instr(info,webzip)>0 then
getcurros = webzip
elseif instr(info,flashget)>0 then
    getcurros = flashget
elseif instr(info,offline)>0 then
getcurros = offline
elseif instr(info,nt 5)>0 then
getcurros = windows 2000
elseif instr(info,nt 4)>0 then
getcurros = windows nt4
elseif instr(info,98)>0 then
getcurros = windows 98
elseif instr(info,95)>0 then
getcurros = windows 95
else
getcurros = unknow
end if
end function
如果大家还有更好的函数,也给小弟一个,我先谢过了.
codetrinis test
[ctrl+a 全选 注:如需引入外部js需刷新才能执行]
其它类似信息

推荐信息