screen.bufferDepth

仮想画面(内部画面/オフスクリーン)の色数をビット数で返します。ビット数と色数の対応は以下のようになります。このプロパティはInternet Explorer 5以降が対応しています。

colorDepthの値色数
-1仮想画面あり
0デフォルト、仮想画面なし
1白黒
24色
38色
416色
8256色
1665536色
241677万色
321677万色+αチャンネル

構文

screen.bufferDepth

例文

<html>
 <head>
  <title>screen.bufferDepth</title>
</head>
 <body>
  <script type="text/javascript"><!--
   document.write(screen.bufferDepth);
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

ADDDATE関数 日付を加算する

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る