자동등록방지코드

 

<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,237
15년 전 조회 3,462
15년 전 조회 1,844
15년 전 조회 1,788
15년 전 조회 1,940
15년 전 조회 1,629
15년 전 조회 4,029
15년 전 조회 2,952
15년 전 조회 2,122
16년 전 조회 1,711
16년 전 조회 1,942
16년 전 조회 2,429
16년 전 조회 1,505
16년 전 조회 2,435
16년 전 조회 1,765
16년 전 조회 1,872
16년 전 조회 1,520
16년 전 조회 2,219
16년 전 조회 1,548
16년 전 조회 1,961
16년 전 조회 2,144
16년 전 조회 1,219
16년 전 조회 1,292
16년 전 조회 1,938
16년 전 조회 5,381
16년 전 조회 1,682
16년 전 조회 2,196
16년 전 조회 2,381
16년 전 조회 1,538
16년 전 조회 1,343
16년 전 조회 2,263
16년 전 조회 4,977
16년 전 조회 2,246
16년 전 조회 2,906
16년 전 조회 1,784
16년 전 조회 3,636
16년 전 조회 4,471
16년 전 조회 3,136
16년 전 조회 2,385
16년 전 조회 2,478
16년 전 조회 2,714
16년 전 조회 2,209
16년 전 조회 5,548
16년 전 조회 3,403
16년 전 조회 1,397
16년 전 조회 1,739
16년 전 조회 5,111
16년 전 조회 2,355
16년 전 조회 3,440
16년 전 조회 2,686
16년 전 조회 1,593
16년 전 조회 5,396
16년 전 조회 2,511
16년 전 조회 6,002
16년 전 조회 1,976
16년 전 조회 4,056
16년 전 조회 3,067
16년 전 조회 2,263
16년 전 조회 2,268
16년 전 조회 4,432
16년 전 조회 3,336
16년 전 조회 2,866
16년 전 조회 3,008
16년 전 조회 2,130
16년 전 조회 1,807
16년 전 조회 1,723
16년 전 조회 1,437
16년 전 조회 1,707
16년 전 조회 1,943
16년 전 조회 1,638
16년 전 조회 4,882
16년 전 조회 3,862
16년 전 조회 1,835
16년 전 조회 1,573
16년 전 조회 2,315
16년 전 조회 4,556
16년 전 조회 3,587
16년 전 조회 2,611
16년 전 조회 4,370
16년 전 조회 3,235
16년 전 조회 1,394
16년 전 조회 1,413
16년 전 조회 2,069
16년 전 조회 1,911
16년 전 조회 2,606
16년 전 조회 2,260
16년 전 조회 1,406
16년 전 조회 4,425
16년 전 조회 1,518
16년 전 조회 1,815
16년 전 조회 2,237
16년 전 조회 3,875
16년 전 조회 2,767
16년 전 조회 1,524
16년 전 조회 4,046
16년 전 조회 1,435
16년 전 조회 1,615
16년 전 조회 1,283
16년 전 조회 1,751
16년 전 조회 1,652