À̺¥Æ®°¡ ¹ß»ýÇÑ ¸¶¿ì½ºÆ÷ÀÎÅÍÀÇ ¼öÆòÁÂÇ¥¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º Á¤¼ö°ª)
¼Ó¼º°ªÀº À̺¥Æ®°¡ ¹ß»ýÇÑ ¸¶¿ì½ºÆ÷ÀÎÅÍÀÇ ¼öÆòÁÂÇ¥¸¦ Çȼ¿´ÜÀ§·Î ³ªÅ¸³»´Â Á¤¼ö°ªÀÌ´Ù.

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

À©µµ¿ìÀÇ Àå½Ä°ú ½ºÅ©·Ñ¹Ù´Â ÁÂÇ¥ »êÁ¤¿¡¼­ Á¦¿ÜµÈ´Ù.

IE4.0¿¡¼­ ÀбâÀü¿ëÀ̾úÀ¸³ª IE5ºÎÅÍ´Â Àϱâ/¾²±âÀÌ´Ù.

clientX ¼Ó¼ºÀº Ŭ¶óÀ̾ðÆ®¿¡ »ó´ëÀûÀÎ °ªÀ» ¹ÝȯÇϹǷΠbody ¿¤·¹¸àÆ® ¸ð¼­¸®·Î ºÎÅÍÀÇ ¼öÆòÁÂÇ¥¸¦ ¾ò±â À§Çؼ­´Â scrollLeft ¼Ó¼ºÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù.

Ŭ¶óÀ̾ðÆ® Áö¿ªÀº ÁÖ ¿¤·¹¸àÆ®ÀÇ ¸ð¼­¸®¿¡¼­ ½ÃÀÛÇÑ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
clientX clientY scrollLeft scrollTop

mousemove °á°ú Ç¥½Ãâ
click, dblclick, keydown °á°ú Ç¥½Ãâ

¸¶¿ì½ºÀÇ À̵¿, Ŭ¸¯, ´õºíŬ¸¯, Å°ÀÔ·ÂÀ» ÇØ º¸¶ó.

<SCRIPT>
function doPlay(){
  str=event.type+' client ÁÂÇ¥ : (x='+event.clientX+' y='+event.clientY+')';
  showA.innerHTML=str;
  if (event.type!='mousemove') showA1.innerHTML=str;
}
</SCRIPT>
<BODY onmousemove="doPlay()" onclick="doPlay()" ondblclick="doPlay()" onkeydown="doPlay()">
<DIV id="showA" style="width:550;border:solid 1 blue;padding:5">mousemove °á°ú Ç¥½Ãâ</DIV>
<DIV id="showA1" style="width:550;border:solid 1 blue;padding:5">click, dblclick, keydown °á°ú Ç¥½Ãâ</DIV>