¹®¼ º»Ã¼ÀÇ ±ÛÀÚ»ö»óÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
¼Ó¼º°ªÀº ¹®¼ º»Ã¼ÀÇ ±ÛÀÚ»ö»óÀ» ³ªÅ¸³»´Â rrggbb »ö»óÀ̳ª »ö»ó¸íÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿ÀÌ´Ù.
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
ÀϺΠºÎ¶ó¿ìÀú¿¡¼´Â »ö»ó¸íÀ» ÀνÄÇÏÁö ¸øÇÒ ¼ö ÀÖÁö¸¸ RGB »ö»óÀº ÀνÄÇÏ°í Á¤È®È÷ Ç¥ÇöÇÏ¿©¾ß ÇÑ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) HTML 3.2¿Í (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
´ÜÃß À§¿¡ ¸¶¿ì½º¸¦ ¿Ã·Áº¸¶ó.
<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>