画面の色数を表示(screen.colorDepth)
<html>
<head>
<title>画面の色数を表示</title>
</head>
<body>
<script language="JavaScript">
<!--
color = screen.colorDepth; //色数(ビット)
color += "bit (";
color += Math.pow(2, screen.colorDepth); //色数(2のべき乗)
color += "色)";
document.write(color);
//-->
</script>
</body>
</html>
〔 実行する 〕