½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > JAVASCRIPT > javascript ¼Ò½ºÃ¢°í > ÅؽºÆ®È¿°ú > ÅؽºÆ®ÀÔ·Â ÇÑ°èÄ¡ ÁøÇà·ü º¸¿©Áֱ⠻ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
ASP
css
html
mysql
jquery
image
API
Mobile
¸Þ´º
slide
°Ô½ÃÆÇ
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
ÅؽºÆ®ÀÔ·Â ÇÑ°èÄ¡ ÁøÇà·ü º¸¿©ÁÖ±â
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù ÅؽºÆ®È¿°ú
´Ù¿î·Îµå Ƚ¼ö 772 ȸ
°£´Ü¼³¸í TEXTAREA ÀÔ·ÂÆû¿¡ ±ÛÀÚ¸¦ ÀÔ·ÂÇÏ¸é ±ÛÀÚÀÔ·Â ÁøÇà·ü ÇÑ°èÄ¡¸¦ º¸¿©ÁÖ´Â ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

<html>
<head>
<title> New Title </title>

<!--- [1´Ü°è] ¾Æ·¡ÀÇ ¼Ò½ºÄڵ带 <head>¿Í </head> »çÀÌ¿¡ ºÙ¿© ³ÖÀ¸¼¼¿ä ---------------------->

<style type="text/css">
.progress{
 width: 1px;
 height: 14px;
 color: white;
 font-size: 12px;
  overflow: hidden;
 background-color: navy; /*¹ÙÀÇ ¹è°æ»ö»ó*/
 padding-left: 5px;
}
</style>

<script type="text/JavaScript">

function textCounter(field,counter,maxlimit,linecounter) {
 var fieldWidth =  parseInt(field.offsetWidth);
 var charcnt = field.value.length;       

 if (charcnt > maxlimit) {
  field.value = field.value.substring(0, maxlimit);
 }

 else {
 var percentage = parseInt(100 - (( maxlimit - charcnt) * 100)/maxlimit) ;
 document.getElementById(counter).style.width =  parseInt((fieldWidth*percentage)/100)+"px";
 document.getElementById(counter).innerHTML="Limit: "+percentage+"%"
 setcolor(document.getElementById(counter),percentage,"background-color");
 }
}

function setcolor(obj,percentage,prop){
 obj.style[prop] = "rgb(80%,"+(100-percentage)+"%,"+(100-percentage)+"%)";
}

</script>

<!------ ¿©±â±îÁö [1´Ü°è ³¡] ----------->

</head>

<body>

<!------ [2´Ü°è] ¾Æ·¡¿Í °°Àº ¹æ¹ýÀ¸·Î ¿øÇÏ´Â °÷¿¡ Äڵ带 ÀÔ·ÂÇϼ¼¿ä -------->
<!------ ¾Æ·¡¿¡¼­ 20 À̶ó´Â ¼ýÀÚ´Â ³ÖÀ»¼ö ÀÖ´Â ±ÛÀÚ¼ö Á¦ÇÑÀ» ¶æÇÕ´Ï´Ù ------->

¾Æ·¡ ¿µ¿ª¿¡ ±ÛÀÚ¸¦ ÀÔ·Â ÇØ º¸¼¼¿ä

<form>

<textarea rows="5" cols="40" name="maxcharfield" id="maxcharfield"
onKeyDown="textCounter(this,'progressbar1',20)"
onKeyUp="textCounter(this,'progressbar1',20)"
onFocus="textCounter(this,'progressbar1',20)" ></textarea><br />

<div id="progressbar1" class="progress"></div>

<script>textCounter(document.getElementById("maxcharfield"),"progressbar1",20)</script>

</form>

<!------ ¿©±â±îÁö [2´Ü°è ³¡] ----------->


</body>
</html>


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
ÇѱÛÀÔ·ÂÇϸé 20ÀÚ¾²°í³ª°í °è¼Ó ÀÔ·ÂÇÏ¸é ³»¿ëÀÌ Áö¿øÁö¸é¼­ ´Ù½Ã ÀÔ·ÂÀÌ µÇ³×¿ä...
Çѱ۵µ °¡´ÉÇÏ°Ô ÇÏ·Á¸é ¾î¶»°Ô ÇØ¾ß Çϳª¿ä??
2009-08-20 16:43:30
guybong
Âù¼º 47
¹Ý´ë 44
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 67417062 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.