자동등록방지코드

 

<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,201
15년 전 조회 3,422
15년 전 조회 1,802
15년 전 조회 1,761
15년 전 조회 1,906
15년 전 조회 1,599
15년 전 조회 4,000
15년 전 조회 2,914
15년 전 조회 2,094
15년 전 조회 1,673
15년 전 조회 1,909
15년 전 조회 2,392
15년 전 조회 1,474
15년 전 조회 2,407
15년 전 조회 1,741
15년 전 조회 1,840
15년 전 조회 1,493
15년 전 조회 2,179
15년 전 조회 1,514
15년 전 조회 1,926
16년 전 조회 2,117
16년 전 조회 1,190
16년 전 조회 1,256
16년 전 조회 1,903
16년 전 조회 5,346
16년 전 조회 1,644
16년 전 조회 2,155
16년 전 조회 2,355
16년 전 조회 1,507
16년 전 조회 1,312
16년 전 조회 2,229
16년 전 조회 4,941
16년 전 조회 2,216
16년 전 조회 2,872
16년 전 조회 1,754
16년 전 조회 3,608
16년 전 조회 4,445
16년 전 조회 3,110
16년 전 조회 2,357
16년 전 조회 2,445
16년 전 조회 2,688
16년 전 조회 2,175
16년 전 조회 5,517
16년 전 조회 3,373
16년 전 조회 1,365
16년 전 조회 1,708
16년 전 조회 5,079
16년 전 조회 2,316
16년 전 조회 3,417
16년 전 조회 2,655
16년 전 조회 1,572
16년 전 조회 5,365
16년 전 조회 2,480
16년 전 조회 5,972
16년 전 조회 1,950
16년 전 조회 4,021
16년 전 조회 3,041
16년 전 조회 2,224
16년 전 조회 2,244
16년 전 조회 4,407
16년 전 조회 3,304
16년 전 조회 2,840
16년 전 조회 2,978
16년 전 조회 2,096
16년 전 조회 1,777
16년 전 조회 1,691
16년 전 조회 1,411
16년 전 조회 1,683
16년 전 조회 1,913
16년 전 조회 1,606
16년 전 조회 4,849
16년 전 조회 3,834
16년 전 조회 1,801
16년 전 조회 1,546
16년 전 조회 2,285
16년 전 조회 4,524
16년 전 조회 3,555
16년 전 조회 2,588
16년 전 조회 4,347
16년 전 조회 3,211
16년 전 조회 1,361
16년 전 조회 1,383
16년 전 조회 2,044
16년 전 조회 1,890
16년 전 조회 2,573
16년 전 조회 2,239
16년 전 조회 1,375
16년 전 조회 4,391
16년 전 조회 1,488
16년 전 조회 1,792
16년 전 조회 2,215
16년 전 조회 3,851
16년 전 조회 2,745
16년 전 조회 1,502
16년 전 조회 4,022
16년 전 조회 1,404
16년 전 조회 1,586
16년 전 조회 1,255
16년 전 조회 1,726
16년 전 조회 1,626
🐛 버그신고