星期五, 12月 17, 2010

JavaScript detect OS version

JavaScript detect OS version


OSName="Win 7";

else if ((OS.indexOf("Windows NT 6.0")!=-1))

OSName="Win Vista/Server 08";

else if (OS.indexOf("Windows ME")!=-1)

OSName="Win ME";

else if ((OS.indexOf("Windows NT 4.0")!=-1) || (OS.indexOf("WinNT4.0")!=-1) || (OS.indexOf("WinNT")!=-1))

OSName="Win NT";

else if ((OS.indexOf("Windows NT 5.2")!=-1))


http://webcache.googleusercontent.com/search?q=cache:9Ri9Q_b_cq0J:douglubey.com/JavaScriptHowToDetectOperationSystemBrowserDivTags.aspx+javascript+detect+win7&cd=1&hl=zh-TW&ct=clnk&gl=tw





沒有留言: