À̺¥Æ®°¡ ¹ß»ýÇÑ ¸¶¿ì½ºÆ÷ÀÎÅÍÀÇ ¼öÆòÁÂÇ¥¸¦ Çȼ¿´ÜÀ§·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
À©µµ¿ìÀÇ Àå½Ä°ú ½ºÅ©·Ñ¹Ù´Â ÁÂÇ¥ »êÁ¤¿¡¼ Á¦¿ÜµÈ´Ù.
IE4.0¿¡¼ ÀбâÀü¿ëÀ̾úÀ¸³ª IE5ºÎÅÍ´Â Àϱâ/¾²±âÀÌ´Ù.
clientX ¼Ó¼ºÀº Ŭ¶óÀ̾ðÆ®¿¡ »ó´ëÀûÀÎ °ªÀ» ¹ÝȯÇϹǷΠbody ¿¤·¹¸àÆ® ¸ð¼¸®·Î ºÎÅÍÀÇ ¼öÆòÁÂÇ¥¸¦ ¾ò±â À§Çؼ´Â scrollLeft ¼Ó¼ºÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù.
Ŭ¶óÀ̾ðÆ® Áö¿ªÀº ÁÖ ¿¤·¹¸àÆ®ÀÇ ¸ð¼¸®¿¡¼ ½ÃÀÛÇÑ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
¸¶¿ì½ºÀÇ À̵¿, Ŭ¸¯, ´õºíŬ¸¯, Å°ÀÔ·ÂÀ» ÇØ º¸¶ó.
<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>