자동등록방지코드

 

<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,181
15년 전 조회 3,401
15년 전 조회 1,782
15년 전 조회 1,744
15년 전 조회 1,887
15년 전 조회 1,581
15년 전 조회 3,980
15년 전 조회 2,893
15년 전 조회 2,078
15년 전 조회 1,656
15년 전 조회 1,891
15년 전 조회 2,371
15년 전 조회 1,456
15년 전 조회 2,391
15년 전 조회 1,724
15년 전 조회 1,820
15년 전 조회 1,475
15년 전 조회 2,164
15년 전 조회 1,494
15년 전 조회 1,908
15년 전 조회 2,101
15년 전 조회 1,178
15년 전 조회 1,238
15년 전 조회 1,880
15년 전 조회 5,326
16년 전 조회 1,628
16년 전 조회 2,136
16년 전 조회 2,336
16년 전 조회 1,485
16년 전 조회 1,294
16년 전 조회 2,207
16년 전 조회 4,922
16년 전 조회 2,199
16년 전 조회 2,856
16년 전 조회 1,736
16년 전 조회 3,588
16년 전 조회 4,426
16년 전 조회 3,095
16년 전 조회 2,341
16년 전 조회 2,421
16년 전 조회 2,672
16년 전 조회 2,159
16년 전 조회 5,501
16년 전 조회 3,352
16년 전 조회 1,345
16년 전 조회 1,690
16년 전 조회 5,061
16년 전 조회 2,297
16년 전 조회 3,401
16년 전 조회 2,635
16년 전 조회 1,554
16년 전 조회 5,347
16년 전 조회 2,463
16년 전 조회 5,954
16년 전 조회 1,928
16년 전 조회 4,006
16년 전 조회 3,021
16년 전 조회 2,206
16년 전 조회 2,225
16년 전 조회 4,402
16년 전 조회 3,285
16년 전 조회 2,822
16년 전 조회 2,954
16년 전 조회 2,074
16년 전 조회 1,761
16년 전 조회 1,670
16년 전 조회 1,393
16년 전 조회 1,665
16년 전 조회 1,894
16년 전 조회 1,586
16년 전 조회 4,835
16년 전 조회 3,817
16년 전 조회 1,782
16년 전 조회 1,526
16년 전 조회 2,261
16년 전 조회 4,509
16년 전 조회 3,537
16년 전 조회 2,571
16년 전 조회 4,329
16년 전 조회 3,198
16년 전 조회 1,346
16년 전 조회 1,364
16년 전 조회 2,027
16년 전 조회 1,874
16년 전 조회 2,552
16년 전 조회 2,224
16년 전 조회 1,354
16년 전 조회 4,375
16년 전 조회 1,468
16년 전 조회 1,774
16년 전 조회 2,195
16년 전 조회 3,828
16년 전 조회 2,724
16년 전 조회 1,482
16년 전 조회 4,004
16년 전 조회 1,387
16년 전 조회 1,572
16년 전 조회 1,235
16년 전 조회 1,709
16년 전 조회 1,606
🐛 버그신고