자동등록방지코드

 

<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,248
15년 전 조회 3,473
15년 전 조회 1,856
15년 전 조회 1,801
15년 전 조회 1,946
15년 전 조회 1,644
15년 전 조회 4,039
15년 전 조회 2,966
15년 전 조회 2,137
16년 전 조회 1,723
16년 전 조회 1,957
16년 전 조회 2,442
16년 전 조회 1,517
16년 전 조회 2,446
16년 전 조회 1,781
16년 전 조회 1,886
16년 전 조회 1,533
16년 전 조회 2,230
16년 전 조회 1,561
16년 전 조회 1,974
16년 전 조회 2,157
16년 전 조회 1,232
16년 전 조회 1,299
16년 전 조회 1,946
16년 전 조회 5,389
16년 전 조회 1,689
16년 전 조회 2,209
16년 전 조회 2,394
16년 전 조회 1,552
16년 전 조회 1,355
16년 전 조회 2,279
16년 전 조회 4,991
16년 전 조회 2,259
16년 전 조회 2,920
16년 전 조회 1,797
16년 전 조회 3,650
16년 전 조회 4,489
16년 전 조회 3,141
16년 전 조회 2,400
16년 전 조회 2,487
16년 전 조회 2,729
16년 전 조회 2,218
16년 전 조회 5,559
16년 전 조회 3,412
16년 전 조회 1,407
16년 전 조회 1,747
16년 전 조회 5,119
16년 전 조회 2,365
16년 전 조회 3,455
16년 전 조회 2,696
16년 전 조회 1,604
16년 전 조회 5,411
16년 전 조회 2,523
16년 전 조회 6,014
16년 전 조회 1,992
16년 전 조회 4,067
16년 전 조회 3,081
16년 전 조회 2,268
16년 전 조회 2,281
16년 전 조회 4,438
16년 전 조회 3,349
16년 전 조회 2,878
16년 전 조회 3,018
16년 전 조회 2,139
16년 전 조회 1,819
16년 전 조회 1,740
16년 전 조회 1,451
16년 전 조회 1,719
16년 전 조회 1,955
16년 전 조회 1,651
16년 전 조회 4,894
16년 전 조회 3,871
16년 전 조회 1,844
16년 전 조회 1,584
16년 전 조회 2,330
16년 전 조회 4,565
16년 전 조회 3,598
16년 전 조회 2,628
16년 전 조회 4,384
16년 전 조회 3,243
16년 전 조회 1,406
16년 전 조회 1,424
16년 전 조회 2,082
16년 전 조회 1,925
16년 전 조회 2,615
16년 전 조회 2,275
16년 전 조회 1,413
16년 전 조회 4,434
16년 전 조회 1,528
16년 전 조회 1,824
16년 전 조회 2,249
16년 전 조회 3,883
16년 전 조회 2,787
16년 전 조회 1,535
16년 전 조회 4,060
16년 전 조회 1,445
16년 전 조회 1,629
16년 전 조회 1,293
16년 전 조회 1,766
16년 전 조회 1,663