자동등록방지코드

 

<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,747
16년 전 조회 3,977
16년 전 조회 2,328
16년 전 조회 2,307
16년 전 조회 2,445
16년 전 조회 2,138
16년 전 조회 4,571
16년 전 조회 3,475
16년 전 조회 2,632
16년 전 조회 2,234
16년 전 조회 2,423
16년 전 조회 2,929
16년 전 조회 2,028
16년 전 조회 2,945
16년 전 조회 2,271
16년 전 조회 2,397
16년 전 조회 2,015
16년 전 조회 2,727
16년 전 조회 2,057
16년 전 조회 2,476
16년 전 조회 2,654
16년 전 조회 1,728
16년 전 조회 1,789
16년 전 조회 2,456
16년 전 조회 5,872
16년 전 조회 2,184
16년 전 조회 2,714
16년 전 조회 2,891
16년 전 조회 2,043
16년 전 조회 1,832
16년 전 조회 2,757
16년 전 조회 5,474
16년 전 조회 2,749
16년 전 조회 3,407
16년 전 조회 2,262
16년 전 조회 4,162
16년 전 조회 4,956
16년 전 조회 3,600
16년 전 조회 2,851
16년 전 조회 2,966
16년 전 조회 3,178
16년 전 조회 2,701
16년 전 조회 6,050
16년 전 조회 3,877
16년 전 조회 1,868
16년 전 조회 2,198
16년 전 조회 5,559
16년 전 조회 2,813
16년 전 조회 3,892
16년 전 조회 3,171
16년 전 조회 2,067
16년 전 조회 5,888
16년 전 조회 2,991
16년 전 조회 6,471
16년 전 조회 2,463
16년 전 조회 4,502
16년 전 조회 3,514
16년 전 조회 2,700
16년 전 조회 2,726
16년 전 조회 4,854
16년 전 조회 3,793
16년 전 조회 3,311
16년 전 조회 3,467
16년 전 조회 2,583
16년 전 조회 2,250
16년 전 조회 2,173
16년 전 조회 1,895
16년 전 조회 2,175
16년 전 조회 2,371
16년 전 조회 2,080
16년 전 조회 5,326
16년 전 조회 4,328
16년 전 조회 2,268
16년 전 조회 2,018
16년 전 조회 2,772
16년 전 조회 5,019
16년 전 조회 4,030
16년 전 조회 3,072
16년 전 조회 4,815
16년 전 조회 3,661
16년 전 조회 1,810
16년 전 조회 1,842
16년 전 조회 2,516
16년 전 조회 2,348
16년 전 조회 3,067
16년 전 조회 2,672
16년 전 조회 1,815
16년 전 조회 4,867
16년 전 조회 1,943
16년 전 조회 2,254
16년 전 조회 2,687
16년 전 조회 4,332
16년 전 조회 3,231
16년 전 조회 1,951
16년 전 조회 4,492
16년 전 조회 1,854
16년 전 조회 2,030
16년 전 조회 1,705
16년 전 조회 2,174
16년 전 조회 2,097