Automatically Jumping To The Next Field
var downStrokeField;
function autojump(fieldName,nextFieldName,fakeMaxLength)
{
var myForm=document.forms[document.forms.length - 1];
var myField=myForm.elements[fieldName];
myField.nextField=myForm.elements[nextFieldName];
if (myField.maxLength == null)
myField.maxLength=fakeMaxLength;
myField.onkeydown=autojump_keyDown;
myField.onkeyup=autojump_keyUp;
}
function autojump_keyDown()
{
this.beforeLength=this.value.length;
downStrokeField=this;
}
function autojump_keyUp()
{
if (
(this == downStrokeField) &&
(this.value.length > this.beforeLength) &&
(this.value.length >= this.maxLength)
)
{
if (this.nextField.select) this.nextField.select();
this.nextField.focus();
}
downStrokeField=null;
}<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
function autojump(fieldName,nextFieldName,fakeMaxLength)
{
var myForm=document.forms[document.forms.length - 1];
var myField=myForm.elements[fieldName];
myField.nextField=myForm.elements[nextFieldName];
if (myField.maxLength == null)
myField.maxLength=fakeMaxLength;
myField.onkeydown=autojump_keyDown;
myField.onkeyup=autojump_keyUp;
}
function autojump_keyDown()
{
this.beforeLength=this.value.length;
downStrokeField=this;
}
function autojump_keyUp()
{
if (
(this == downStrokeField) &&
(this.value.length > this.beforeLength) &&
(this.value.length >= this.maxLength)
)
{
if (this.nextField.select) this.nextField.select();
this.nextField.focus();
}
downStrokeField=null;
}<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 692 |
JavaScript
home, end키
1
|
| 685 |
JavaScript
콘솔 화면 보호기 끄기
|
| 684 |
기타
히스토리 지우는것 막기
|
| 682 |
JavaScript
VSFTP에서는 PUBLIC_HTML에....
1
|
| 679 | |
| 672 | |
| 671 | |
| 666 | |
| 663 | |
| 661 |
MySQL
[펌]mysql매뉴얼
1
|
| 659 |
JavaScript
미리보기 소스
1
|
| 650 |
Flash
물결치는 모습
8
|
| 646 | |
| 634 | |
| 631 | |
| 630 | |
| 627 |
JavaScript
403 Forbidden error 생길때
2
|
| 625 | |
| 620 | |
| 616 | |
| 611 | |
| 607 | |
| 602 |
기타
타입 툴사용시 팁
4
|
| 599 |
JavaScript
쓸모있는 'border-collapse' 속성
2
|
| 597 |
Linux
페도라 리눅스 시디1장으로 설치하기
1
|
| 596 | |
| 592 | |
| 589 | |
| 584 | |
| 583 |
JavaScript
움직임이 자연스러운 자바시계
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기