色テーブル(1)




 

<SCRIPT language=javascript>
<!--
var rr,gg,bb;
var m1 = new Array("0","32","64","96","128","160","192","224","255");
var m2 = new Array("00","20","40","60","80","A0","C0","E0","FF");

function edit00(){
 var wk0 = "00";
 var i,j;
 with(document)
 {
  write("<TABLE border=0 cellSpacing=1 width='70%'><TBODY><TR>");
  write("<TD align=center bgColor=#ff0000 rowSpan=2 width='9%'><P align=center><FONT color=#ffffff><B>赤</B></FONT></P></TD>");
  write("<TD align=center bgColor=#ff0000 rowSpan=2 width='9%'><P align=center><FONT color=#ffffff><B>0</B></FONT></P></TD>");
  write("<CENTER><TD align=center bgColor=#0000ff colSpan=9 width='10%'><FONT color=#ffffff><B>青</B></FONT></TD></TR>");
  write("<TR>");
  for(i=0;i<=8;i++){
   write("<TD align=center bgColor=#0000ff width='9%'><FONT color=#ffffff size=2><B>" + m1[i] + "</B></FONT></TD>");
  } 
  write("<TR><TD align=center bgColor=#008000 rowSpan=9 width='9%'><B><FONT color=#ffffff>緑</FONT></B></TD>");
  for(j=0;j<=8;j++){
   write("<TD align=center bgColor=#008000 width='9%'><B><FONT color=#ffffff size=2>" + m1[j] + "</FONT></B></TD>");
   for(i=0;i<=8;i++){
    write("<TD align=center width='9%' bgColor=#" + wk0 + m2[i] + m2[j] + "> </TD>");
   } 
   write("</TR>");
  } 
 write("</TR></TBODY></TABLE>");
 }

//-->
</SCRIPT>

<SCRIPT Language="JavaScript">
<!--
edit00();
// -->
</SCRIPT>

注意

注)JavaScriptで処理しています。JavaScript対応ブラウウザでご使用下さい。


00/07/14更新

顔文字、絵文字 | サンプル集(2)