¸ðü ¹®¼­¿¡ ³ªÅ¸³ª´ÂHTC(HTML Component)ÀÇ À̺¥Æ®¸¦ Á¤ÀÇÇÑ´Ù.

Script ..propName[=propVal];
HTML propName="propVal"/>
Ư±â

name ¾ÖÆ®¸®ºäÆ®¸¦ ÁöÁ¤ÇÏ´Â °ÍÀº ¿¤·¹¸àÆ®¿¡¼­ Á¤ÀÌµÈ Ç¥ÁØ À̺¥Æ®¿Í ºñ½ÁÇÏ´Ù. ºñÇìÀ̹ö´Â ¿¤·¹¸àÆ®ÀÇ µðÆúÆ® ºñÇìÀ̹ö¸¦ µ¤¾î¾º¿î´Ù.

ºñÇìÀ̹ö¿¡ Á¤ÀÇµÈ À̺¥Æ®µéÀº ¹öºí(bubble)ÇÏÁö ¾Ê°í, À̺¥Æ®´Â ºñÇìÀ̹ö°¡ ÷ºÎµÈ ¿¤·¹¸àÆ®¿¡¼­¸¸ ¹ß»ýµÈ´Ù.

ÂüÁ¶
behavior, PUBLIC:METHOD, PUBLIC:PROPERTY

¼³¸íÀ» À§ÇÑ ¿¹Á¦


¿¤·¹¸àÆ® Á¤º¸

¸ðü ¿¤·¹¸àÆ® PUBLIC:COMPONENT
¸ðü ¿¤·¹¸àÆ® ¾ø½¿
ÃÖ¼Ò ¹öÀü IE5
ÃÖ¼Ò OS Windows95, WindowsNT4.0

id ( id="sID"> ¾ÖÆ®¸®ºäÆ®)
¢¡ ¼±ÅÃÀûÀÎ ¿ä¼ÒÀ̸ç, ÄÞÆ÷³ÙÆ®¿¡¼­ PUBLIC:EVENT ¿¤·¹¸àÆ®ÀÇ À¯ÀÏÇÑ ÀνÄÀÚ¸¦ ÁöÁ¤ÇÏ´Â ¹®ÀÚ¿­ÀÌ´Ù.
¹®¹ý: .id[=sID]
ÄÚµå: document.write(oObj.id) °á°ú:
name ( name="sName"> ¾ÖÆ®¸®ºäÆ®)
¢¡ ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ¸ðü ¹®¼­¿¡ ³ªÅ¸³ª´Â À̺¥Æ®ÀÇ À̸§À» ÁöÁ¤ÇÏ´Â ¹®ÀÚ¿­ÀÌ´Ù..
¹®¹ý: .name[=sName]
ÄÚµå: document.write(oObj.name) °á°ú:

¸Þ¼­µå¼³¸í
fireChange eventID.fire(oEvent)

¸ðü ¹®¼­¿¡ À̺¥Æ®¸¦ ¹ß»ý½ÃŲ´Ù. oEvent´Â Á¤º¸¸¦ Æ÷ÇÔÇÏ´Â event °³Ã¼ÀÌ´Ù.


Ŭ¸¯ÇÏ¿© °á°ú ¾ò±â

event °³Ã¼ÀÇ Ä¿½ºÅÒ ¼Ó¼ºÀ» ÁöÁ¤ÇÏ¿© myEvent ±â´ÉÀ» È£ÃâÇÏ¿´´Ù.

<HTML xmlns:myNs>
<HEAD>
<STYLE>
@media all {
   myNs\:myTest {behavior:url(../object/exp/myTestHTC.htc)}
}
</STYLE>
</HEAD>
<MYNS:myTest id="myCalc" myEvent="divObj.innerText=window.event.result">
<DIV id=divObj style="height:2em;border:solid 1 blue;background:ffa">Ŭ¸¯ÇÏ¿© °á°ú ¾ò±â</DIV>

../object/exp/myTestHTC.htcÀÇ ³»¿ë
<PUBLIC:EVENT name="myEvent" id="divObj" />
<PUBLIC:ATTACH event="onclick" onevent="doShow()" />
<SCRIPT LANGUAGE="JScript">
function doShow(){
  str='event.type='+event.type+'\n';
  str+='this.id='+this.id+'\n';
  str+='this.tagName='+this.tagName+'\n';
  str+='this.nodeName='+this.nodeName+'\n';
  alert(str);
}
</SCRIPT>