<HTML XMLNS:IE>
<HEAD>
<STYLE>
@media all {
   IE\:clientCaps {behavior:url(#default#clientCaps)}
}   
</STYLE>
</HEAD><BODY>
<IE:clientCaps ID="oClientCaps" /><PRE id=oPre></PRE><SCRIPT>
<!--
function window.onload()
{
   sTempStr = "availHeight    = " + oClientCaps.availHeight    + "\n" + 
              "availWidth     = " + oClientCaps.availWidth     + "\n" + 
              "bufferDepth    = " + oClientCaps.bufferDepth    + "\n" +
              "colorDepth     = " + oClientCaps.colorDepth     + "\n" +
              "connectionType = " + oClientCaps.connectionType + "\n" +
              "cookieEnabled  = " + oClientCaps.cookieEnabled  + "\n" +  
              "cpuClass       = " + oClientCaps.cpuClass       + "\n" + 
              "height         = " + oClientCaps.height         + "\n" + 
              "javaEnabled    = " + oClientCaps.javaEnabled    + "\n" + 
              "platform       = " + oClientCaps.platform       + "\n" + 
              "systemLanguage = " + oClientCaps.systemLanguage + "\n" + 
              "userLanguage   = " + oClientCaps.userLanguage   + "\n" + 
              "width          = " + oClientCaps.width          + "\n" ;
  
   oPre.innerText = sTempStr;   
}
-->
</SCRIPT>
</BODY>
</HTML>

解决方案 »

  1.   

    <html>
    <head>
    <title>system information</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body bgcolor="#FFFFFF" text="#000000">
    <script>
    if (window.navigator.onLine == true) {
       var ol = "ONLINE";
    }
    else {
       ol = "OFFLINE";
    }
    if (window.navigator.javaEnabled() == true) {
       var java = "ENABLED";
    }
    else {
       java = "UNABLED";
    }
    if (window.navigator.taintEnabled() == true) {
       var taint = "ENABLED";
    }
    else {
       taint = "UNABLED";
    }
    alert("-- Your System Language is "+window.navigator.systemLanguage+" --\n-- Your Browser Language is "+window.navigator.browserLanguage+" --\n-- Your User Language is "+window.navigator.userLanguage+" --\n-- Your OS is "+window.navigator.platform+" --\n-- Your CPU is "+window.navigator.cpuClass+" --\n-- Your User Agent is "+window.navigator.userAgent+" --\n-- You're JAVA "+java+" --\n-- You're TAINT "+taint+" --\n-- You're now "+ol+" --");
    </script>
    </body>
    </html>