ondetach À̺¥Æ® ¿¹Á¦ CSS2 ±Ô°Ý ¸ñ·Ï

behavior ºñÇìÀ̹ö ÷ºÎ·Î °¢ Ç׸ñ¿¡ ¸¶¿ì½º¸¦ ¿Ã¸®¸é ÇÏÀ̶óÀÌÆ®°¡ Àû¿ëµÈ´Ù

<SCRIPT>
function attachBehavior(){
  document.styleSheets[1].rules[0].style.behavior= 'url(../../public/hilite.htc)';
  butattach.disabled=true;
  butdetach.disabled=false;
}
function detachBehavior(){
  document.styleSheets[1].rules[0].style.behavior= '';
  butattach.disabled=false;
  butdetach.disabled=true;
}
</SCRIPT>
<STYLE>
UL LI { behavior:url(../../public/hilite.htc);line-height:1.3em;}
.code { font-size:9pt;color:026;font-family:±¼¸²;background:#dff;border:solid 1 #aea;}
.method { background:#ffeeee;color:#a42;padding-left:3px;padding-right:3px;font-weight:bold;}
</STYLE>
</HEAD>

<BODY>

<UL>
<LI>CSS2 ±Ô°Ý¿¡ ´ëÇÏ¿©
<LI>CSS2 ±Ô°ÝÀÇ ¼Ò°³
<LI>ºÎÇÕ¼º: ÇÊ¿ä»çÇ×°ú Ãßõ»çÇ×
<LI>CSS2 ¹®¹ý°ú ±âº» µ¥ÀÌÅÍ Å¸ÀÔ
<LI>¼±ÅÃÀÚ(selector)
<LI>¼Ó¼º°ª ¼³Á¤, Ä«½ºÄÉÀ̵ù, ¼Ó¼º Àü´Þ
<LI>¸Þµð¾Æ(media) ŸÀÔ
<LI>¹Ú½º ¸ðµ¨(box model)
<LI>º¸ÀÌ´Â ¾ç½ÄÈ­ ¸ðµ¨
<LI>º¸ÀÌ´Â ¾ç½ÄÈ­ ¸ðµ¨ »ó¼¼
<LI>º¸ÀÌ´Â È¿°ú
<LI>»ý¼ºµÈ ³»¿ë, ÀÚµ¿ ¹øÈ£ ³Ö±â¿Í ¸ñ·Ï
<LI>ÆäÀÌÁöÈ­µÈ ¸Þµð¾Æ
<LI>»ö»ó°ú ¹è°æ
<LI>±Û²Ã
<LI>ÅؽºÆ®
<LI>Å×À̺í(table)
<LI>»ç¿ëÀÚ ÀÎÅÍÆäÀ̽º(User interface)
<LI>À½¼º ½ºÅ¸ÀϽ¬Æ®
<LI>ºÎ·Ï A. HTML 4¸¦ À§ÇÑ ½ºÅ¸ÀϽ¬Æ® °ßº»
<LI>ºÎ·Ï B. CSS1À¸·ÎºÎÅÍÀÇ º¯È­
<LI>ºÎ·Ï C. ±Û²Ã¿¡ ´ëÇÑ Àû¿ë°ú ¼º´É ÁÖ¼®
<LI>ºÎ·Ï D. CSS2ÀÇ ºÐ¹ý
<LI>ºÎ·Ï E. ÂüÁ¶
<LI>ºÎ·Ï F. ¼Ó¼º »öÀÎ
<LI>ºÎ·Ï G. ¼³¸íÀÚ(descriptor) »öÀÎ
<LI>ºÎ·Ï H. »öÀÎ
</UL>
<BUTTON id=butdetach onclick="detachBehavior()">ºñÇìÀ̹ö Á¦°Å</BUTTON>
<BUTTON id=butattach onclick="attachBehavior()">ºñÇìÀ̹ö ÷ºÎ</BUTTON>
<SCRIPT>butattach.disabled=true;</SCRIPT>
</BODY>
</HTML>


../public/hilite.htc <PUBLIC:ATTACH EVENT="onmouseover" onevent="Hilite()" /> <PUBLIC:ATTACH EVENT="onmouseout" onevent="Restore()" /> <SCRIPT language="JScript"> var normalColor; function Hilite(){ normalColor=currentStyle.color; runtimeStyle.color='red'; runtimeStyle.backgroundColor='#ffffee'; runtimeStyle.border='solid 1 red'; runtimeStyle.lineHeight='1.2em'; } function Restore(){ runtimeStyle.color=normalColor; runtimeStyle.backgroundColor=''; runtimeStyle.border='dotted 1 silver'; runtimeStyle.lineHeight='1.2em'; } </SCRIPT> </PUBLIC:COMPONENT>