자동등록방지코드

 

<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="자동등록방지">  왼쪽의 글자를 입력하세요.
    <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,211
15년 전 조회 3,429
15년 전 조회 1,814
15년 전 조회 1,768
15년 전 조회 1,918
15년 전 조회 1,607
15년 전 조회 4,008
15년 전 조회 2,924
15년 전 조회 2,103
15년 전 조회 1,686
15년 전 조회 1,919
15년 전 조회 2,408
15년 전 조회 1,484
15년 전 조회 2,416
16년 전 조회 1,751
16년 전 조회 1,851
16년 전 조회 1,499
16년 전 조회 2,190
16년 전 조회 1,527
16년 전 조회 1,939
16년 전 조회 2,129
16년 전 조회 1,197
16년 전 조회 1,267
16년 전 조회 1,912
16년 전 조회 5,355
16년 전 조회 1,657
16년 전 조회 2,169
16년 전 조회 2,362
16년 전 조회 1,520
16년 전 조회 1,324
16년 전 조회 2,236
16년 전 조회 4,953
16년 전 조회 2,223
16년 전 조회 2,881
16년 전 조회 1,760
16년 전 조회 3,616
16년 전 조회 4,451
16년 전 조회 3,116
16년 전 조회 2,362
16년 전 조회 2,453
16년 전 조회 2,694
16년 전 조회 2,185
16년 전 조회 5,524
16년 전 조회 3,383
16년 전 조회 1,376
16년 전 조회 1,716
16년 전 조회 5,090
16년 전 조회 2,328
16년 전 조회 3,424
16년 전 조회 2,665
16년 전 조회 1,578
16년 전 조회 5,374
16년 전 조회 2,492
16년 전 조회 5,983
16년 전 조회 1,959
16년 전 조회 4,032
16년 전 조회 3,047
16년 전 조회 2,234
16년 전 조회 2,252
16년 전 조회 4,412
16년 전 조회 3,318
16년 전 조회 2,847
16년 전 조회 2,988
16년 전 조회 2,106
16년 전 조회 1,786
16년 전 조회 1,701
16년 전 조회 1,417
16년 전 조회 1,691
16년 전 조회 1,920
16년 전 조회 1,618
16년 전 조회 4,858
16년 전 조회 3,845
16년 전 조회 1,812
16년 전 조회 1,552
16년 전 조회 2,298
16년 전 조회 4,529
16년 전 조회 3,567
16년 전 조회 2,593
16년 전 조회 4,353
16년 전 조회 3,218
16년 전 조회 1,373
16년 전 조회 1,392
16년 전 조회 2,051
16년 전 조회 1,897
16년 전 조회 2,580
16년 전 조회 2,247
16년 전 조회 1,386
16년 전 조회 4,400
16년 전 조회 1,498
16년 전 조회 1,796
16년 전 조회 2,223
16년 전 조회 3,859
16년 전 조회 2,751
16년 전 조회 1,508
16년 전 조회 4,030
16년 전 조회 1,414
16년 전 조회 1,595
16년 전 조회 1,262
16년 전 조회 1,734
16년 전 조회 1,635