判断客户浏览器是32位还是64位(detect the browser: 32bit or 64bit)
To detect the browser, please try the following code:
<script language=javascript>
<!--
document.write("<br>OS:"+window.navigator.platform);
document.write("<br>Browser:"+window.navigator.userAgent);
document.write("<br>CPU type:"+window.navigator.cpuClass);
//-->
</script>
<!--
document.write("<br>OS:"+window.navigator.platform);
document.write("<br>Browser:"+window.navigator.userAgent);
document.write("<br>CPU type:"+window.navigator.cpuClass);
//-->
</script>
in a 64bit lab, the following like information will be show:
OS:Win64
Browser:Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.2;.NET CLR 2.0.40903)
CPU type:ia64
Browser:Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.2;.NET CLR 2.0.40903)
CPU type:ia64