자동등록방지코드

 

<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,183
15년 전 조회 3,403
15년 전 조회 1,784
15년 전 조회 1,745
15년 전 조회 1,888
15년 전 조회 1,583
15년 전 조회 3,981
15년 전 조회 2,894
15년 전 조회 2,081
15년 전 조회 1,657
15년 전 조회 1,893
15년 전 조회 2,374
15년 전 조회 1,458
15년 전 조회 2,392
15년 전 조회 1,725
15년 전 조회 1,822
15년 전 조회 1,476
15년 전 조회 2,166
15년 전 조회 1,495
15년 전 조회 1,910
15년 전 조회 2,103
15년 전 조회 1,180
15년 전 조회 1,238
15년 전 조회 1,883
15년 전 조회 5,327
16년 전 조회 1,629
16년 전 조회 2,136
16년 전 조회 2,338
16년 전 조회 1,486
16년 전 조회 1,295
16년 전 조회 2,209
16년 전 조회 4,925
16년 전 조회 2,200
16년 전 조회 2,856
16년 전 조회 1,737
16년 전 조회 3,590
16년 전 조회 4,428
16년 전 조회 3,095
16년 전 조회 2,342
16년 전 조회 2,424
16년 전 조회 2,672
16년 전 조회 2,160
16년 전 조회 5,502
16년 전 조회 3,353
16년 전 조회 1,345
16년 전 조회 1,691
16년 전 조회 5,062
16년 전 조회 2,299
16년 전 조회 3,403
16년 전 조회 2,637
16년 전 조회 1,556
16년 전 조회 5,348
16년 전 조회 2,464
16년 전 조회 5,954
16년 전 조회 1,930
16년 전 조회 4,008
16년 전 조회 3,023
16년 전 조회 2,208
16년 전 조회 2,228
16년 전 조회 4,403
16년 전 조회 3,287
16년 전 조회 2,824
16년 전 조회 2,956
16년 전 조회 2,075
16년 전 조회 1,761
16년 전 조회 1,672
16년 전 조회 1,394
16년 전 조회 1,666
16년 전 조회 1,894
16년 전 조회 1,587
16년 전 조회 4,835
16년 전 조회 3,817
16년 전 조회 1,784
16년 전 조회 1,528
16년 전 조회 2,263
16년 전 조회 4,510
16년 전 조회 3,537
16년 전 조회 2,572
16년 전 조회 4,330
16년 전 조회 3,198
16년 전 조회 1,346
16년 전 조회 1,366
16년 전 조회 2,029
16년 전 조회 1,876
16년 전 조회 2,553
16년 전 조회 2,224
16년 전 조회 1,355
16년 전 조회 4,376
16년 전 조회 1,468
16년 전 조회 1,776
16년 전 조회 2,196
16년 전 조회 3,829
16년 전 조회 2,726
16년 전 조회 1,483
16년 전 조회 4,006
16년 전 조회 1,388
16년 전 조회 1,572
16년 전 조회 1,236
16년 전 조회 1,711
16년 전 조회 1,607
🐛 버그신고