자동등록방지코드

 

<script src="<?=$g4[path]?>/js/jquery.js"></script>
<script src="<?=$g4[path]?>/js/md5.js"></script>


<form id='fjoin' action='join_form.php' method='post'>
    <img id='kcaptcha_image' border='0' width=120 height=60 style="cursor:pointer;" title="글자가 잘안보이는 경우 클릭하시면 새로운 글자가 나옵니다.">
    <input class='ed' type='input' size='10' id='wr_key' name='wr_key' itemname="자동등록방지">&nbsp;&nbsp;왼쪽의 글자를 입력하세요.
    <input type=submit>
</form>


<script type="text/javascript"> var md5_norobot_key = ''; </script>
<script type="text/javascript">
$(document).ready(function() {
    $('#kcaptcha_image').click(function() {
        $.post('<?=$g4[bbs_path]?>/kcaptcha_session.php', function(data) {
            $('#kcaptcha_image').attr('src', '<?=$g4[bbs_path]?>/kcaptcha_image.php?t=' + (new Date).getTime());
            md5_norobot_key = data;
        });
    });

    $('#kcaptcha_image').click();

    $('#fjoin').submit(function() {
        if ($('#wr_key') != 'undefined') {
            if (hex_md5($('#wr_key').val()) != md5_norobot_key) {
                alert('자동등록방지용 글자가 제대로 입력되지 않았습니다.');
                $('#wr_key').select().focus();
                return false;
            }
        }

        return true;
    });
});
</script>

[이 게시물은 관리자님에 의해 2011-10-31 16:55:28 jQuery에서 이동 됨]
|

댓글 2개

http://sir.co.kr/bbs/board.php?bo_table=tip_jquery&wr_id=17&page=5
웹자인님 그만쫌 하시죠.. 포인트가 중요하시면 커뮤니티를 하세요
참 보기 않좋네요
뭐야 이거 완전배꼈네요
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
15년 전 조회 5,187
15년 전 조회 3,409
15년 전 조회 1,790
15년 전 조회 1,749
15년 전 조회 1,896
15년 전 조회 1,589
15년 전 조회 3,988
15년 전 조회 2,900
15년 전 조회 2,086
15년 전 조회 1,661
15년 전 조회 1,899
15년 전 조회 2,380
15년 전 조회 1,462
15년 전 조회 2,395
15년 전 조회 1,733
15년 전 조회 1,829
15년 전 조회 1,483
15년 전 조회 2,172
15년 전 조회 1,499
15년 전 조회 1,920
16년 전 조회 2,110
16년 전 조회 1,184
16년 전 조회 1,246
16년 전 조회 1,891
16년 전 조회 5,335
16년 전 조회 1,634
16년 전 조회 2,142
16년 전 조회 2,344
16년 전 조회 1,494
16년 전 조회 1,303
16년 전 조회 2,215
16년 전 조회 4,931
16년 전 조회 2,205
16년 전 조회 2,863
16년 전 조회 1,745
16년 전 조회 3,596
16년 전 조회 4,434
16년 전 조회 3,101
16년 전 조회 2,349
16년 전 조회 2,429
16년 전 조회 2,679
16년 전 조회 2,165
16년 전 조회 5,505
16년 전 조회 3,360
16년 전 조회 1,350
16년 전 조회 1,697
16년 전 조회 5,068
16년 전 조회 2,303
16년 전 조회 3,408
16년 전 조회 2,643
16년 전 조회 1,558
16년 전 조회 5,354
16년 전 조회 2,471
16년 전 조회 5,961
16년 전 조회 1,937
16년 전 조회 4,012
16년 전 조회 3,031
16년 전 조회 2,214
16년 전 조회 2,232
16년 전 조회 4,403
16년 전 조회 3,294
16년 전 조회 2,828
16년 전 조회 2,967
16년 전 조회 2,082
16년 전 조회 1,768
16년 전 조회 1,678
16년 전 조회 1,404
16년 전 조회 1,671
16년 전 조회 1,900
16년 전 조회 1,590
16년 전 조회 4,840
16년 전 조회 3,821
16년 전 조회 1,790
16년 전 조회 1,532
16년 전 조회 2,272
16년 전 조회 4,514
16년 전 조회 3,541
16년 전 조회 2,580
16년 전 조회 4,338
16년 전 조회 3,203
16년 전 조회 1,352
16년 전 조회 1,373
16년 전 조회 2,037
16년 전 조회 1,881
16년 전 조회 2,558
16년 전 조회 2,230
16년 전 조회 1,359
16년 전 조회 4,379
16년 전 조회 1,478
16년 전 조회 1,780
16년 전 조회 2,204
16년 전 조회 3,839
16년 전 조회 2,733
16년 전 조회 1,486
16년 전 조회 4,010
16년 전 조회 1,394
16년 전 조회 1,577
16년 전 조회 1,242
16년 전 조회 1,716
16년 전 조회 1,614
🐛 버그신고