下边的代码实现对Windows、Mac、Linux、Unix擦作系统的判断: <script type="text/javascript" language="JavaScript"> <!-- function check_os() { windows = (navigator.userAgent.indexOf("Windows",0) != -1)?1:0; mac = (navigator.userAgent.indexOf("mac",0) != -1)?1:0; linux = (navigator.userAgent.indexOf("Linux",0) != -1)?1: