CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

프리랜서 커뮤니티

으짠이님께서 phpschool. 팁게시판에서 미니위니에 가져온 걸 다시 이 곳에 포스팅~ ^^;

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

<body>
<textarea name="textarea" scol cols="50" rows="5" onKeyDown="setLine( this )"></textarea>

<script language="javascript">
       function setLine( txa ){
              line = 5 //기본 줄 수
      
              new_line = txa.value.split( "n" ).length + 1;
              if( new_line < line ) new_line = line;

              txa.rows = new_line;
       }

</script>
</body>
</html>

추천한 사람