자동등록방지코드

 

<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,459
15년 전 조회 3,701
15년 전 조회 2,063
15년 전 조회 2,012
15년 전 조회 2,155
16년 전 조회 1,855
16년 전 조회 4,300
16년 전 조회 3,187
16년 전 조회 2,351
16년 전 조회 1,936
16년 전 조회 2,144
16년 전 조회 2,647
16년 전 조회 1,723
16년 전 조회 2,644
16년 전 조회 1,972
16년 전 조회 2,103
16년 전 조회 1,754
16년 전 조회 2,446
16년 전 조회 1,772
16년 전 조회 2,191
16년 전 조회 2,354
16년 전 조회 1,443
16년 전 조회 1,512
16년 전 조회 2,159
16년 전 조회 5,578
16년 전 조회 1,883
16년 전 조회 2,403
16년 전 조회 2,601
16년 전 조회 1,754
16년 전 조회 1,543
16년 전 조회 2,464
16년 전 조회 5,174
16년 전 조회 2,450
16년 전 조회 3,113
16년 전 조회 1,983
16년 전 조회 3,853
16년 전 조회 4,690
16년 전 조회 3,335
16년 전 조회 2,575
16년 전 조회 2,665
16년 전 조회 2,910
16년 전 조회 2,414
16년 전 조회 5,802
16년 전 조회 3,607
16년 전 조회 1,599
16년 전 조회 1,935
16년 전 조회 5,305
16년 전 조회 2,562
16년 전 조회 3,634
16년 전 조회 2,919
16년 전 조회 1,785
16년 전 조회 5,631
16년 전 조회 2,746
16년 전 조회 6,203
16년 전 조회 2,168
16년 전 조회 4,238
16년 전 조회 3,265
16년 전 조회 2,445
16년 전 조회 2,459
16년 전 조회 4,635
16년 전 조회 3,518
16년 전 조회 3,056
16년 전 조회 3,195
16년 전 조회 2,317
16년 전 조회 1,992
16년 전 조회 1,911
16년 전 조회 1,616
16년 전 조회 1,916
16년 전 조회 2,128
16년 전 조회 1,823
16년 전 조회 5,063
16년 전 조회 4,091
16년 전 조회 2,013
16년 전 조회 1,775
16년 전 조회 2,494
16년 전 조회 4,782
16년 전 조회 3,765
16년 전 조회 2,810
16년 전 조회 4,542
16년 전 조회 3,412
16년 전 조회 1,578
16년 전 조회 1,593
16년 전 조회 2,256
16년 전 조회 2,103
16년 전 조회 2,840
16년 전 조회 2,442
16년 전 조회 1,574
16년 전 조회 4,620
16년 전 조회 1,709
16년 전 조회 2,012
16년 전 조회 2,423
16년 전 조회 4,107
16년 전 조회 2,995
16년 전 조회 1,703
16년 전 조회 4,280
16년 전 조회 1,613
16년 전 조회 1,784
16년 전 조회 1,464
16년 전 조회 1,932
16년 전 조회 1,844