웹프로그래밍

Global It Leader!!


jQuery


 
 

자동으로 포커스 이동하는 스크립트

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 8,006회 작성일 10-08-28 17:38

본문

<script type="text/javascript"> 
//maxlength 만큼 옮기면 다음으로 이동하기....
function nextFocus(sFormName,sNow,sNext)
{
 var sForm = 'document.'+ sFormName +'.'
 var oNow = eval(sForm + sNow); if (typeof oNow == 'object')
 {
  if ( oNow.value.length == oNow.maxLength)
  {
   var oNext = eval(sForm + sNext);   if ((typeof oNext) == 'object')
    oNext.focus();
  }
 }
}
</script>

<form>  
<table>   
              <tr bgcolor="#ffffff">
                <td width="160" class=m_title><label for="reg_mb_name">이름</label></td>
                <td class=m_padding>
                  <input name=mb_name id=reg_mb_name itemname="이름" required value="<?=$member[mb_name]?>" <?=$member[mb_name]?"readonly class=ed2":"class=ed";?>>
                  <?
                  if ($w=='') {
                   echo "※ 반드시 실명을 입력하세요.";
                  }
                  ?>
                </td>
              </tr>                 
<tr bgcolor="#ffffff">
                        <td class=m_title1><label for="mb_jumin">주민등록번호</label></td>
                        <td class=m_padding width="130">
                          <input name="mb_jumin1" id="reg_mb_jumin1" type="text"  maxlength=6 class="ed"  size=6 onkeyup="nextFocus('fregisterform','reg_mb_jumin1','reg_mb_jumin2')" title="주민등록 번호 앞자리"> - <input name="mb_jumin2" id="reg_mb_jumin2" type="text" maxlength=7  class="ed" size=7 onkeyup="nextFocus('fregisterform','reg_mb_jumin2','reg_mb_name')" title="주민등록 번호 뒷자리">
                        </td>
                        <td>
                          <a href="#real_check" onclick="reg_mb_real_check();return false;"><img src="<?=$member_skin_path?>/img/btn_real.gif" border=0 align=absmiddle alt="실명인증"></a><span id='msg_mb_real'></span>
                        </td>
                      </tr>
</table>
</form>


댓글목록

등록된 댓글이 없습니다.

전체 142
게시물 검색
jQuery 목록
번호 제목 글쓴이 조회 날짜
22 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6676 07-26
21 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5028 07-26
20 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6258 06-14
19 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5859 06-13
18 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6006 06-09
17 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6403 06-01
16 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6036 05-30
15 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5564 05-26
14 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5658 05-13
13 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6184 05-13
12 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7577 05-07
11 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6250 05-03
10 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6802 04-29
9 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6273 04-05
8 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6231 12-16
7 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6874 11-10
6 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6267 10-03
열람중 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8007 08-28
4 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8331 06-15
3 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6751 05-10