|
|
|
20년 전
|
조회 665
|
|
|
|
20년 전
|
조회 545
|
|
|
|
20년 전
|
조회 616
|
|
|
|
20년 전
|
조회 400
|
|
|
|
20년 전
|
조회 469
|
|
|
|
20년 전
|
조회 391
|
|
|
|
20년 전
|
조회 564
|
|
|
|
20년 전
|
조회 442
|
|
|
|
20년 전
|
조회 571
|
|
|
|
20년 전
|
조회 883
|
|
|
|
20년 전
|
조회 1,025
|
|
|
|
20년 전
|
조회 480
|
|
|
|
20년 전
|
조회 451
|
|
|
|
20년 전
|
조회 440
|
|
|
|
20년 전
|
조회 379
|
|
|
|
20년 전
|
조회 427
|
|
|
|
20년 전
|
조회 497
|
|
|
|
20년 전
|
조회 539
|
|
|
|
20년 전
|
조회 921
|
|
|
|
20년 전
|
조회 386
|
댓글 2개
maxlength=100
이런식으로 제한을 걸어 주세요. 참고는 위 소스의 이름 혹은 이메일
쪽을 보시고 하시면 됩니다.
<meta http-equiv=Pragma content=No-Cache>
<meta http-equiv=Content-Type content="text/html; charset=euc-kr">
<script language=javascript>
<!--
function GetTextCount(nFlag) {
var nCnt;
if (nFlag == 1) {
nCnt = document.frmReg.userintro.value.length;
document.all.textlimit1.innerText = nCnt;
if (nCnt > 200) {
frmReg.userintro.value = frmReg.userintro.value.substring(0, 199);
}
}
else if (nFlag == 2) {
nCnt = document.frmReg.exp1.value.length;
document.all.textlimit2.innerText = nCnt;
if (nCnt > 100) {
frmReg.exp1.value = frmReg.exp1.value.substring(0, 99);
}
}
else if (nFlag == 3) {
nCnt = document.frmReg.exp2.value.length;
document.all.textlimit3.innerText = nCnt;
if (nCnt > 100) {
frmReg.exp2.value = frmReg.exp2.value.substring(0, 99);
}
}
else if (nFlag == 4) {
nCnt = document.frmReg.exp3.value.length;
document.all.textlimit4.innerText = nCnt;
if (nCnt > 100) {
frmReg.exp3.value = frmReg.exp3.value.substring(0, 99);
}
}
}
function textCounter(field, maxlimit, flag) {
if (field.value.length > maxlimit)
{
alert('제한된 글자수를 초과하였습니다.');
field.value = field.value.substring(0, maxlimit);
}
else
{
if (flag == 1)
document.all.textlimit1.innerText = field.value.length;
else if (flag == 2)
document.all.textlimit2.innerText = field.value.length;
else if (flag == 3)
document.all.textlimit3.innerText = field.value.length;
else
document.all.textlimit4.innerText = field.value.length;
}
}
function doSubmit2() {
frm = document.frmReg;
if(confirm("프로파일 이미지를 초기화 하시겠습니까?")){
frm.action = "ok2.asp";
frm.submit();
}
else
return;
}
//-->
</script>
</HEAD>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class=body >
<style type="text/css">
<!--
div,td,li,form,input,textarea,select,pre,blockquote {word-break:break-all; font-family: 굴림,verdana,; font-size: 9pt; font-weight: normal; font-style: normal; color:#000000; }
td.left_bg { background-color:#FFFFFF; }
td.mtitle { font-family: 굴림,verdana; font-size: 9pt; color:#000000; font-weight: normal; font-style: normal; text-decoration: none; }
.input { font-family: 굴림,verdana; font-size: 9pt; border:1 solid; border-color:333333; background-color:white; }
.textarea { font-family: 굴림,verdana; font-size: 9pt; border:1 solid; border-color:333333; background-color:white; }
//-->
</style>
<br><center>
<table border=0 cellpadding=2 cellspacing=2 width=95%>
<tr><td bgcolor=E2E2E2 height=1 colspan=4><spacer type=block height=1></td></tr>
<tr height=24>
<td align=center bgcolor=F2F2F2>자기 소개</td>
<td width=10 nowrap></td>
<td>
<table border=0 cellpadding=0><form>
<tr><td><textarea cols=65 rows=4 name="userintro" class=textarea onKeyDown="textCounter(this.form.userintro,200, 1);" onKeyUp="textCounter(this.form.userintro, 200, 1);"></textarea></td></tr>
<tr><td><font style="font-size:9pt;">현재 <span id=textlimit1>0</span>자/최대 200자</td></tr>
<tr><td class=recom>(자기 자신에 대한 소개를 200글자 이내로 적어주세요. HTML불가)</td></tr>
</form>
</table>
</td>
<td width=30 nowrap></td>
</tr>
<tr><td bgcolor=E2E2E2 height=1 colspan=4><spacer type=block height=1></td></tr>
</table>
</body>
</html>
우띄 길당.. 그냥 소스.. 퍼옴