boundingHeight, boundingWidth, boundingLeft, boundingTop ¼Ó¼º °øÃÑ ¿¹Á¦

°á°ú Ç¥½Ãâ

½ºÅ©·ÑÇÏ¿© ¹Ú½ºÀÇ À§Ä¡¸¦ º¯°æ½ÃÅ°°í Ŭ¸¯ÇÏ¿© boundingTop ¼Ó¼º°ªÀÇ º¯È­¸¦ º¸¶ó.

<SCRIPT>
function boundDim(){
  taObj=fName.textAreaObj.createTextRange();
  str='¹ÝÇ⠻簢ÇüÀÇ ³ôÀÌ(taObj.boundingHeight)=<FONT color=blue>'+taObj.boundingHeight+'</FONT><BR>';
  str+='¹ÝÇ⠻簢ÇüÀÇ ³Êºñ(taObj.boundingWidth)=<FONT color=blue>'+taObj.boundingWidth+'</FONT><BR>';
  str+='¹ÝÇâ x ÁÂÇ¥(taObj.boundingLeft)=<FONT color=blue>'+taObj.boundingLeft+'</FONT><BR>';
  str+='¹ÝÇâ y ÁÂÇ¥(taObj.boundingTop)=<FONT color=blue>'+taObj.boundingTop+'</FONT><BR>';
  show.innerHTML=str;
}
</SCRIPT>
<FORM id=fName>
<TEXTAREA cols=20 rows=4 id=textAreaObj onclick="boundDim()">
ÀÔ·Â TEXTAREA ½ºÅ©·ÑÇÏ¿© ¹Ú½ºÀÇ À§Ä¡¸¦ º¯°æ½ÃÅ°°í Ŭ¸¯ÇÏ¿© ¼Ó¼º°ªÀÇ º¯È­¸¦ º¸¶ó.
ÀÔ·Â TEXTAREA ½ºÅ©·ÑÇÏ¿© ¹Ú½ºÀÇ À§Ä¡¸¦ º¯°æ½ÃÅ°°í Ŭ¸¯ÇÏ¿© ¼Ó¼º°ªÀÇ º¯È­¸¦ º¸¶ó.
</TEXTAREA>
</FORM>
<DIV id=show style="height:4.8em">°á°ú Ç¥½Ãâ</DIV>