<script language="JavaScript">
<!--
function textCounter(field,counter,maxlimit,linecounter) {
var fieldWidth = parseInt(field.style.width);
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";
setcolor(document.getElementById(counter),percentage,"background-color");
}
}
function setcolor(obj,percentage,prop){
obj.style[prop] = "rgb(80%,"+(100-percentage)+"%,"+(100-percentage)+"%)";
}
// 페이지 로드시 명령
textCounter(document.getElementById("maxcharfield"),"progressbar1",200);
//-->
</script>
<!--
textarea에서 onkeydown,onkeyup,onfocus의 명령의 설명
textCounter(this,1,2);
this : 현재 textarea의 name값과 같음
1 : 게이지가 보여질 부분의 id값
2 : textarea에 입력 가능한 최대 글자수
** textarea에서 가로크기는 꼭 style로 해야함 cols는 안됨..
//-->
<textarea style="width:300px" rows="5" name="maxcharfield" onKeyDown="textCounter(this,'progressbar1',200);" onKeyUp="textCounter(this,'progressbar1',200);" onFocus="textCounter(this,'progressbar1',200);">
</textarea>
<!-- 입력 길이를 표시하는 게이지 //-->
<div id="progressbar1" style="width:1px; height:2px; background-color:#DFDFFF;"></div><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
<!--
function textCounter(field,counter,maxlimit,linecounter) {
var fieldWidth = parseInt(field.style.width);
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";
setcolor(document.getElementById(counter),percentage,"background-color");
}
}
function setcolor(obj,percentage,prop){
obj.style[prop] = "rgb(80%,"+(100-percentage)+"%,"+(100-percentage)+"%)";
}
// 페이지 로드시 명령
textCounter(document.getElementById("maxcharfield"),"progressbar1",200);
//-->
</script>
<!--
textarea에서 onkeydown,onkeyup,onfocus의 명령의 설명
textCounter(this,1,2);
this : 현재 textarea의 name값과 같음
1 : 게이지가 보여질 부분의 id값
2 : textarea에 입력 가능한 최대 글자수
** textarea에서 가로크기는 꼭 style로 해야함 cols는 안됨..
//-->
<textarea style="width:300px" rows="5" name="maxcharfield" onKeyDown="textCounter(this,'progressbar1',200);" onKeyUp="textCounter(this,'progressbar1',200);" onFocus="textCounter(this,'progressbar1',200);">
</textarea>
<!-- 입력 길이를 표시하는 게이지 //-->
<div id="progressbar1" style="width:1px; height:2px; background-color:#DFDFFF;"></div><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 475 | ||
| 7929 | 9년 전 | 408 | ||
| 7928 | 9년 전 | 486 | ||
| 7927 | 9년 전 | 387 | ||
| 7926 | 9년 전 | 695 | ||
| 7925 | 9년 전 | 421 | ||
| 7924 | 9년 전 | 402 | ||
| 7923 | 9년 전 | 390 | ||
| 7922 | 9년 전 | 419 | ||
| 7921 | 9년 전 | 435 | ||
| 7920 | 9년 전 | 345 | ||
| 7919 | 9년 전 | 356 | ||
| 7918 | 9년 전 | 509 | ||
| 7917 | 9년 전 | 363 | ||
| 7916 | 9년 전 | 451 | ||
| 7915 | 9년 전 | 465 | ||
| 7914 | 9년 전 | 476 | ||
| 7913 | 9년 전 | 651 | ||
| 7912 | 9년 전 | 485 | ||
| 7911 | 9년 전 | 407 | ||
| 7910 | 9년 전 | 458 | ||
| 7909 | 9년 전 | 573 | ||
| 7908 | 9년 전 | 512 | ||
| 7907 | 9년 전 | 445 | ||
| 7906 | 9년 전 | 464 | ||
| 7905 | 9년 전 | 434 | ||
| 7904 | 9년 전 | 420 | ||
| 7903 | 9년 전 | 431 | ||
| 7902 | 9년 전 | 606 | ||
| 7901 |
|
9년 전 | 771 | |
| 7900 | 9년 전 | 666 | ||
| 7899 | 9년 전 | 449 | ||
| 7898 | 9년 전 | 447 | ||
| 7897 | 9년 전 | 406 | ||
| 7896 | 9년 전 | 420 | ||
| 7895 | 9년 전 | 539 | ||
| 7894 | 9년 전 | 446 | ||
| 7893 | 9년 전 | 425 | ||
| 7892 | 9년 전 | 460 | ||
| 7891 | 9년 전 | 816 | ||
| 7890 | 9년 전 | 1236 | ||
| 7889 | 9년 전 | 772 | ||
| 7888 |
limsy1987
|
9년 전 | 581 | |
| 7887 | 9년 전 | 635 | ||
| 7886 | 9년 전 | 520 | ||
| 7885 | 9년 전 | 491 | ||
| 7884 | 9년 전 | 484 | ||
| 7883 | 9년 전 | 491 | ||
| 7882 | 9년 전 | 549 | ||
| 7881 | 9년 전 | 525 | ||
| 7880 | 9년 전 | 636 | ||
| 7879 | 9년 전 | 526 | ||
| 7878 | 9년 전 | 1300 | ||
| 7877 | 9년 전 | 822 | ||
| 7876 | 9년 전 | 567 | ||
| 7875 | 9년 전 | 638 | ||
| 7874 |
|
9년 전 | 834 | |
| 7873 | 9년 전 | 560 | ||
| 7872 | 9년 전 | 729 | ||
| 7871 | 9년 전 | 544 | ||
| 7870 | 9년 전 | 664 | ||
| 7869 | 9년 전 | 480 | ||
| 7868 | 9년 전 | 522 | ||
| 7867 | 10년 전 | 529 | ||
| 7866 | 10년 전 | 584 | ||
| 7865 | 10년 전 | 530 | ||
| 7864 | 10년 전 | 583 | ||
| 7863 | 10년 전 | 576 | ||
| 7862 | 10년 전 | 545 | ||
| 7861 | 10년 전 | 711 | ||
| 7860 | 10년 전 | 690 | ||
| 7859 | 10년 전 | 460 | ||
| 7858 | 10년 전 | 775 | ||
| 7857 | 10년 전 | 1159 | ||
| 7856 | 10년 전 | 584 | ||
| 7855 | 10년 전 | 824 | ||
| 7854 | 10년 전 | 757 | ||
| 7853 | 10년 전 | 659 | ||
| 7852 | 10년 전 | 582 | ||
| 7851 | 10년 전 | 586 | ||
| 7850 | 10년 전 | 655 | ||
| 7849 | 10년 전 | 421 | ||
| 7848 | 10년 전 | 489 | ||
| 7847 | 10년 전 | 731 | ||
| 7846 | 10년 전 | 514 | ||
| 7845 | 10년 전 | 492 | ||
| 7844 | 10년 전 | 454 | ||
| 7843 | 10년 전 | 491 | ||
| 7842 | 10년 전 | 473 | ||
| 7841 | 10년 전 | 443 | ||
| 7840 | 10년 전 | 461 | ||
| 7839 | 10년 전 | 514 | ||
| 7838 | 10년 전 | 573 | ||
| 7837 | 10년 전 | 400 | ||
| 7836 | 10년 전 | 451 | ||
| 7835 | 10년 전 | 532 | ||
| 7834 |
|
10년 전 | 1230 | |
| 7833 | 10년 전 | 497 | ||
| 7832 | 10년 전 | 473 | ||
| 7831 | 10년 전 | 638 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기