À̺¥Æ®°¡ ¹ß»ýµÇ¾ú´ÂÁö¸¦ ¾Ë·ÁÁÖ´Â ±â´ÉÀ» ÁßÁöÅ°½Ã±â À§ÇÏ¿© À̺¥Æ®·Î ºÎÅÍ ÁöÁ¤µÈ ±â´ÉÀ» ÇØÁ¦ÇÑ´Ù.
¹Ýȯ°ªÀº ¾ø´Ù.
attachEvent ¸Þ¼µå·Î À̺¥Æ®¿¡ ÷ºÎµÈ ±â´ÉÀº, ondetach À̺¥Æ®°¡ ¹ß»ýµÇ¸é ÆäÀÌÁö·ÎºÎÅÍ ¹Þ´Â Å뺸¸¦ ÁßÁö½ÃÅ°±â À§ÇÏ¿©, ¸í½ÃÀûÀ¸·Î detachEvent ¸Þ¼µå¸¦ È£ÃâÇÏ¿©¾ß ÇÑ´Ù.
PUBLIC:ATTACH ¿¤·¹¸àÆ®¸¦ »ç¿ëÇÏ¿© À̺¥Æ®¿¡ ÷ºÎµÈ ±â´ÉÀº ºñÇìÀ̹ö°¡ ¿¤·¹¸àÆ®·ÎºÎÅÍ Á¦°ÅµÇ¸é Å뺸¸¦ ¹Þ´Â °ÍÀÌ ÀÚµ¿ÀûÀ¸·Î ÁßÁöµÇ¹Ç·Î, detachEvent ¸Þ¼µå¸¦ È£ÃâÇÒ ÇÊ¿ä´Â ¾ø´Ù.
°³Ã¼ | script | IE |
---|
<STYLE> UL.exp LI {behavior:url(../public/hilite.htc); line-height:1.3em;} </STYLE> <SCRIPT> function detachBehavior(){ document.styleSheets[1].rules[0].style.behavior= ''; } function attachBehavior(){ document.styleSheets[1].rules[0].style.behavior='url(../public/hilite.htc)'; } </SCRIPT> <UL class=exp> <LI>Property</LI> <LI>Object</LI> <LI>Method</LI> <LI>Event</LI> </UL> <P style=margin-left:3em>ºñÇìÀ̹ö ÷ºÎ(<A href="javascript:attachBehavior()">attach</A>) ºñÇìÀ̹ö Á¦°Å(<A href="javascript:detachBehavior()">detach</A>)</P>