<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 930 | 19년 전 | 3546 | ||
| 929 |
|
19년 전 | 2709 | |
| 928 |
|
19년 전 | 3456 | |
| 927 |
|
19년 전 | 3444 | |
| 926 |
|
19년 전 | 3149 | |
| 925 | 19년 전 | 5434 | ||
| 924 |
|
19년 전 | 2170 | |
| 923 |
|
19년 전 | 2225 | |
| 922 |
|
19년 전 | 2316 | |
| 921 |
|
19년 전 | 3413 | |
| 920 | 19년 전 | 3709 | ||
| 919 |
|
19년 전 | 3749 | |
| 918 |
|
19년 전 | 2367 | |
| 917 |
|
19년 전 | 2401 | |
| 916 |
|
19년 전 | 2707 | |
| 915 | 19년 전 | 3052 | ||
| 914 | 19년 전 | 2464 | ||
| 913 | 19년 전 | 2627 | ||
| 912 | 19년 전 | 2462 | ||
| 911 | 19년 전 | 2216 | ||
| 910 | 19년 전 | 3251 | ||
| 909 | 19년 전 | 3312 | ||
| 908 | 19년 전 | 3043 | ||
| 907 |
|
19년 전 | 4876 | |
| 906 |
|
19년 전 | 2719 | |
| 905 |
|
19년 전 | 3321 | |
| 904 |
|
19년 전 | 3156 | |
| 903 |
|
19년 전 | 1998 | |
| 902 |
|
19년 전 | 3150 | |
| 901 |
|
19년 전 | 1884 | |
| 900 |
|
19년 전 | 2343 | |
| 899 |
|
19년 전 | 2405 | |
| 898 |
|
19년 전 | 3988 | |
| 897 |
|
19년 전 | 3188 | |
| 896 |
|
19년 전 | 3106 | |
| 895 |
|
19년 전 | 2542 | |
| 894 |
|
19년 전 | 2020 | |
| 893 |
|
19년 전 | 1652 | |
| 892 |
|
19년 전 | 2419 | |
| 891 |
|
19년 전 | 2330 | |
| 890 |
|
19년 전 | 1816 | |
| 889 |
|
19년 전 | 1813 | |
| 888 |
|
19년 전 | 2613 | |
| 887 |
|
19년 전 | 2586 | |
| 886 |
|
19년 전 | 1876 | |
| 885 |
|
19년 전 | 2118 | |
| 884 |
|
19년 전 | 3309 | |
| 883 |
|
19년 전 | 1956 | |
| 882 |
|
19년 전 | 2504 | |
| 881 |
|
19년 전 | 2583 | |
| 880 |
|
19년 전 | 2665 | |
| 879 |
|
19년 전 | 2941 | |
| 878 |
|
19년 전 | 2562 | |
| 877 |
|
19년 전 | 2984 | |
| 876 |
|
19년 전 | 2763 | |
| 875 |
|
19년 전 | 3525 | |
| 874 | 19년 전 | 1873 | ||
| 873 | 19년 전 | 2737 | ||
| 872 |
|
19년 전 | 2376 | |
| 871 |
|
19년 전 | 2020 | |
| 870 |
|
19년 전 | 2428 | |
| 869 |
|
19년 전 | 1874 | |
| 868 |
|
19년 전 | 5442 | |
| 867 |
|
19년 전 | 2268 | |
| 866 |
|
19년 전 | 4268 | |
| 865 |
|
19년 전 | 2305 | |
| 864 | 19년 전 | 1856 | ||
| 863 | 19년 전 | 2609 | ||
| 862 | 19년 전 | 2335 | ||
| 861 | 19년 전 | 2536 | ||
| 860 | 19년 전 | 2165 | ||
| 859 | 19년 전 | 3929 | ||
| 858 | 19년 전 | 3423 | ||
| 857 | 19년 전 | 2201 | ||
| 856 |
Power
|
19년 전 | 2109 | |
| 855 | 19년 전 | 1972 | ||
| 854 | 19년 전 | 2007 | ||
| 853 |
pearly
|
19년 전 | 4393 | |
| 852 |
pearly
|
19년 전 | 3358 | |
| 851 | 19년 전 | 2780 | ||
| 850 |
pearly
|
19년 전 | 3355 | |
| 849 |
pearly
|
19년 전 | 3015 | |
| 848 |
pearly
|
19년 전 | 2849 | |
| 847 | 19년 전 | 2370 | ||
| 846 |
|
19년 전 | 2177 | |
| 845 |
pearly
|
19년 전 | 2496 | |
| 844 | 19년 전 | 3108 | ||
| 843 | 19년 전 | 2134 | ||
| 842 |
pearly
|
19년 전 | 3126 | |
| 841 |
pearly
|
19년 전 | 3250 | |
| 840 | 19년 전 | 2931 | ||
| 839 |
|
19년 전 | 1945 | |
| 838 |
|
19년 전 | 1708 | |
| 837 |
|
19년 전 | 2332 | |
| 836 |
|
19년 전 | 2274 | |
| 835 |
|
19년 전 | 1650 | |
| 834 |
|
19년 전 | 1668 | |
| 833 |
|
19년 전 | 1575 | |
| 832 |
|
19년 전 | 2068 | |
| 831 |
|
19년 전 | 1617 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기