°³Ã¼ÀÇ ¹è°æ»ö»óÀ» ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º »ö»ó)

¼Ó¼º°ªÀº ¹è°æ»ö»óÀ» rrggbb »ö»óÀ̳ª »ö»ó¸íÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

ÀÌ ¼Ó¼ºÀº ¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

JScript´Â ¼³Á¤¿¡ °ü°è¾øÀÌ Ç×»ó rrggbb »ö»ó°ªÀ¸·Î ¹ÝȯÇÑ´Ù.

ÀϺΠºÎ¶ó¿ìÀú¿¡¼­´Â »ö»ó¸íÀ» ÀνÄÇÏÁö ¸øÇÒ ¼ö ÀÖÁö¸¸ RGB »ö»óÀº ÀνÄÇÏ°í Á¤È®È÷ Ç¥ÇöÇÏ¿©¾ß ÇÑ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
background, bgColor

ÀÌ ¼Ó¼ºÀº (¿µ¹®)HTML3.02¿¡ Microsoft ÀÇ È®ÀåÀ̸ç,
(¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.


table ¹è°æ »ö»ó ¼Ó¼º ¿¹Á¦

R1C1R1C2R1C3R1C4R1C5
R2C1R2C2R2C3R2C4R2C5
R3C1R3C2R3C3R3C4R3C5
R4C1R4C2R4C3R4C4R4C5
<TABLE id="tableObj" bgColor="#ffffdd" border=1 cellpadding=9 cellspacing=9 width=500>
<COLGROUP id="colGroupObj" align="center" bgColor="pink"><COL><COL></COLGROUP><COL><COL><COL id="colObj" bgColor="aqua">
<TR><TD>R1C1</TD><TD>R1C2</TD><TD>R1C3</TD><TD>R1C4</TD><TD>R1C5</TD></TR>
<TR><TD>R2C1</TD><TD>R2C2</TD><TD>R2C3</TD><TD>R2C4</TD><TD>R2C5</TD></TR>
<TR><TD>R3C1</TD><TD>R3C2</TD><TD>R3C3</TD><TD id="tdObj" bgcolor="lightblue">R3C4</TD><TD>R3C5</TD></TR>
<TR><TD>R4C1</TD><TD>R4C2</TD><TD>R4C3</TD><TD>R4C4</TD><TD>R4C5</TD></TR>
</TABLE>
<SCRIPT>
str='tableObj.bgColor="<FONT color=blue>'+tableObj.bgColor+'</FONT>"<BR>';
str+='colGroupObj.bgColor="<FONT color=blue>'+colGroupObj.bgColor+'</FONT>"<BR>';
str+='colObj.bgColor="<FONT color=blue>'+colObj.bgColor+'</FONT>"<BR>';
str+='tdObj.bgColor="<FONT color=blue>'+tdObj.bgColor+'</FONT>"<BR>';
document.write(str);
</SCRIPT>