자동등록방지코드

 

<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
웹자인님 그만쫌 하시죠.. 포인트가 중요하시면 커뮤니티를 하세요
참 보기 않좋네요
뭐야 이거 완전배꼈네요
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
16년 전 조회 5,550
16년 전 조회 3,773
16년 전 조회 2,144
16년 전 조회 2,094
16년 전 조회 2,240
16년 전 조회 1,933
16년 전 조회 4,366
16년 전 조회 3,272
16년 전 조회 2,437
16년 전 조회 2,025
16년 전 조회 2,221
16년 전 조회 2,724
16년 전 조회 1,801
16년 전 조회 2,734
16년 전 조회 2,057
16년 전 조회 2,197
16년 전 조회 1,834
16년 전 조회 2,535
16년 전 조회 1,851
16년 전 조회 2,277
16년 전 조회 2,429
16년 전 조회 1,526
16년 전 조회 1,593
16년 전 조회 2,244
16년 전 조회 5,662
16년 전 조회 1,962
16년 전 조회 2,486
16년 전 조회 2,679
16년 전 조회 1,841
16년 전 조회 1,619
16년 전 조회 2,552
16년 전 조회 5,266
16년 전 조회 2,541
16년 전 조회 3,202
16년 전 조회 2,068
16년 전 조회 3,939
16년 전 조회 4,772
16년 전 조회 3,410
16년 전 조회 2,642
16년 전 조회 2,754
16년 전 조회 2,987
16년 전 조회 2,502
16년 전 조회 5,869
16년 전 조회 3,689
16년 전 조회 1,677
16년 전 조회 2,021
16년 전 조회 5,380
16년 전 조회 2,646
16년 전 조회 3,712
16년 전 조회 3,000
16년 전 조회 1,867
16년 전 조회 5,696
16년 전 조회 2,808
16년 전 조회 6,285
16년 전 조회 2,261
16년 전 조회 4,314
16년 전 조회 3,332
16년 전 조회 2,525
16년 전 조회 2,532
16년 전 조회 4,690
16년 전 조회 3,598
16년 전 조회 3,131
16년 전 조회 3,274
16년 전 조회 2,403
16년 전 조회 2,054
16년 전 조회 1,986
16년 전 조회 1,692
16년 전 조회 2,001
16년 전 조회 2,201
16년 전 조회 1,899
16년 전 조회 5,141
16년 전 조회 4,152
16년 전 조회 2,082
16년 전 조회 1,853
16년 전 조회 2,578
16년 전 조회 4,851
16년 전 조회 3,845
16년 전 조회 2,888
16년 전 조회 4,616
16년 전 조회 3,488
16년 전 조회 1,650
16년 전 조회 1,675
16년 전 조회 2,330
16년 전 조회 2,184
16년 전 조회 2,904
16년 전 조회 2,517
16년 전 조회 1,647
16년 전 조회 4,691
16년 전 조회 1,783
16년 전 조회 2,080
16년 전 조회 2,500
16년 전 조회 4,170
16년 전 조회 3,062
16년 전 조회 1,777
16년 전 조회 4,336
16년 전 조회 1,695
16년 전 조회 1,863
16년 전 조회 1,546
16년 전 조회 2,001
16년 전 조회 1,920