¹®¼­ º»Ã¼ÀÇ ±ÛÀÚ»ö»óÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

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

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

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

Ư±â

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

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

ÀÌ ¼Ó¼ºÀº (¿µ¹®) HTML 3.2¿Í (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.


body. ¼Ó¼º ¿¹Á¦


´ÜÃß À§¿¡ ¸¶¿ì½º¸¦ ¿Ã·Áº¸¶ó.

<SCRIPT>
document.body.text='black';
document.write('document.body.text='+document.body.text);
</SCRIPT><BR>
<BUTTON onmouseover="document.body.text='green'" onmouseout="document.body.text='black'">³ì»ö ±ÛÀÚ»ö</BUTTON>
<BUTTON onmouseover="document.body.text='brown'" onmouseout="document.body.text='black'">°¥»ö ±ÛÀÚ»ö</BUTTON>
<BUTTON onmouseover="document.body.text='red'" onmouseout="document.body.text='black'">Àû»ö ±ÛÀÚ»ö</BUTTON>
<BUTTON onmouseover="document.body.text='blue'" onmouseout="document.body.text='black'">û»ö ±ÛÀÚ»ö</BUTTON>