¸ðü ¹®¼¿¡ ³ªÅ¸³ª´ÂHTC(HTML Component)ÀÇ À̺¥Æ®¸¦ Á¤ÀÇÇÑ´Ù.
Script | ..propName[=propVal]; | |
HTML | propName="propVal"/> |
name ¾ÖÆ®¸®ºäÆ®¸¦ ÁöÁ¤ÇÏ´Â °ÍÀº ¿¤·¹¸àÆ®¿¡¼ Á¤ÀÌµÈ Ç¥ÁØ À̺¥Æ®¿Í ºñ½ÁÇÏ´Ù. ºñÇìÀ̹ö´Â ¿¤·¹¸àÆ®ÀÇ µðÆúÆ® ºñÇìÀ̹ö¸¦ µ¤¾î¾º¿î´Ù.
ºñÇìÀ̹ö¿¡ Á¤ÀÇµÈ À̺¥Æ®µéÀº ¹öºí(bubble)ÇÏÁö ¾Ê°í, À̺¥Æ®´Â ºñÇìÀ̹ö°¡ ÷ºÎµÈ ¿¤·¹¸àÆ®¿¡¼¸¸ ¹ß»ýµÈ´Ù.
¼³¸íÀ» À§ÇÑ ¿¹Á¦
¿¤·¹¸àÆ® Á¤º¸
¸ðü ¿¤·¹¸àÆ® | PUBLIC:COMPONENT |
---|---|
¸ðü ¿¤·¹¸àÆ® | ¾ø½¿ |
ÃÖ¼Ò ¹öÀü | IE5 |
ÃÖ¼Ò OS | Windows95, WindowsNT4.0 |
¸Þ¼µå | ¼³¸í |
---|---|
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>