<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1330 | 18년 전 | 1491 | ||
| 1329 | 18년 전 | 1722 | ||
| 1328 | 18년 전 | 1010 | ||
| 1327 | 18년 전 | 1426 | ||
| 1326 | 18년 전 | 2266 | ||
| 1325 | 18년 전 | 1147 | ||
| 1324 | 18년 전 | 1308 | ||
| 1323 | 18년 전 | 1570 | ||
| 1322 | 18년 전 | 1184 | ||
| 1321 | 18년 전 | 977 | ||
| 1320 | 18년 전 | 1198 | ||
| 1319 | 18년 전 | 1524 | ||
| 1318 | 18년 전 | 1652 | ||
| 1317 | 18년 전 | 1603 | ||
| 1316 | 18년 전 | 1215 | ||
| 1315 |
|
18년 전 | 8604 | |
| 1314 | 18년 전 | 1915 | ||
| 1313 | 18년 전 | 1499 | ||
| 1312 | 18년 전 | 1491 | ||
| 1311 | 18년 전 | 1788 | ||
| 1310 | 18년 전 | 1838 | ||
| 1309 | 18년 전 | 1229 | ||
| 1308 | 18년 전 | 990 | ||
| 1307 | 18년 전 | 2761 | ||
| 1306 | 18년 전 | 3117 | ||
| 1305 | 18년 전 | 2180 | ||
| 1304 | 18년 전 | 1561 | ||
| 1303 | 18년 전 | 1429 | ||
| 1302 | 18년 전 | 893 | ||
| 1301 | 18년 전 | 1794 | ||
| 1300 | 18년 전 | 5143 | ||
| 1299 | 18년 전 | 2865 | ||
| 1298 |
mixdesign
|
18년 전 | 2112 | |
| 1297 | 18년 전 | 3083 | ||
| 1296 | 18년 전 | 2554 | ||
| 1295 | 18년 전 | 2246 | ||
| 1294 |
onweb
|
18년 전 | 4563 | |
| 1293 |
onweb
|
18년 전 | 3494 | |
| 1292 | 18년 전 | 3460 | ||
| 1291 | 18년 전 | 4046 | ||
| 1290 | 18년 전 | 1906 | ||
| 1289 | 18년 전 | 1767 | ||
| 1288 | 18년 전 | 1734 | ||
| 1287 | 18년 전 | 1434 | ||
| 1286 | 18년 전 | 1274 | ||
| 1285 | 18년 전 | 1163 | ||
| 1284 | 18년 전 | 1165 | ||
| 1283 | 18년 전 | 1522 | ||
| 1282 | 18년 전 | 922 | ||
| 1281 | 18년 전 | 1275 | ||
| 1280 | 18년 전 | 1134 | ||
| 1279 | 18년 전 | 1152 | ||
| 1278 | 18년 전 | 3027 | ||
| 1277 | 18년 전 | 951 | ||
| 1276 | 18년 전 | 1162 | ||
| 1275 | 18년 전 | 2100 | ||
| 1274 | 18년 전 | 2229 | ||
| 1273 | 18년 전 | 1324 | ||
| 1272 | 18년 전 | 1917 | ||
| 1271 | 18년 전 | 1170 | ||
| 1270 | 18년 전 | 2501 | ||
| 1269 | 18년 전 | 6602 | ||
| 1268 |
페이지팩트
|
18년 전 | 3827 | |
| 1267 |
페이지팩트
|
18년 전 | 2233 | |
| 1266 |
|
18년 전 | 6302 | |
| 1265 | 18년 전 | 2590 | ||
| 1264 | 18년 전 | 2625 | ||
| 1263 | 18년 전 | 2125 | ||
| 1262 | 18년 전 | 2119 | ||
| 1261 |
페이지팩트
|
18년 전 | 2133 | |
| 1260 | 18년 전 | 3889 | ||
| 1259 |
|
18년 전 | 3940 | |
| 1258 |
|
18년 전 | 5050 | |
| 1257 | 18년 전 | 4146 | ||
| 1256 | 18년 전 | 2582 | ||
| 1255 | 18년 전 | 1818 | ||
| 1254 | 18년 전 | 2786 | ||
| 1253 | 18년 전 | 2719 | ||
| 1252 | 18년 전 | 2244 | ||
| 1251 | 18년 전 | 5425 | ||
| 1250 |
jbsstyle
|
18년 전 | 4767 | |
| 1249 |
|
18년 전 | 3777 | |
| 1248 | 18년 전 | 3455 | ||
| 1247 | 18년 전 | 2142 | ||
| 1246 | 18년 전 | 2141 | ||
| 1245 | 18년 전 | 3644 | ||
| 1244 |
|
18년 전 | 2288 | |
| 1243 |
|
18년 전 | 2496 | |
| 1242 | 18년 전 | 1773 | ||
| 1241 | 18년 전 | 4467 | ||
| 1240 | 18년 전 | 2156 | ||
| 1239 | 18년 전 | 2305 | ||
| 1238 | 18년 전 | 4044 | ||
| 1237 |
hwatta
|
18년 전 | 3898 | |
| 1236 | 18년 전 | 2124 | ||
| 1235 | 18년 전 | 2775 | ||
| 1234 | 18년 전 | 5149 | ||
| 1233 | 18년 전 | 2416 | ||
| 1232 |
|
18년 전 | 2957 | |
| 1231 | 18년 전 | 8507 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기