자동등록방지코드

 

<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,258
15년 전 조회 3,486
15년 전 조회 1,866
15년 전 조회 1,810
15년 전 조회 1,954
15년 전 조회 1,654
15년 전 조회 4,054
15년 전 조회 2,981
15년 전 조회 2,147
16년 전 조회 1,734
16년 전 조회 1,965
16년 전 조회 2,453
16년 전 조회 1,525
16년 전 조회 2,456
16년 전 조회 1,792
16년 전 조회 1,896
16년 전 조회 1,541
16년 전 조회 2,241
16년 전 조회 1,570
16년 전 조회 1,983
16년 전 조회 2,169
16년 전 조회 1,240
16년 전 조회 1,313
16년 전 조회 1,956
16년 전 조회 5,399
16년 전 조회 1,703
16년 전 조회 2,219
16년 전 조회 2,411
16년 전 조회 1,560
16년 전 조회 1,363
16년 전 조회 2,286
16년 전 조회 5,000
16년 전 조회 2,271
16년 전 조회 2,927
16년 전 조회 1,809
16년 전 조회 3,655
16년 전 조회 4,498
16년 전 조회 3,153
16년 전 조회 2,412
16년 전 조회 2,499
16년 전 조회 2,738
16년 전 조회 2,230
16년 전 조회 5,571
16년 전 조회 3,423
16년 전 조회 1,418
16년 전 조회 1,757
16년 전 조회 5,132
16년 전 조회 2,375
16년 전 조회 3,467
16년 전 조회 2,707
16년 전 조회 1,616
16년 전 조회 5,423
16년 전 조회 2,532
16년 전 조회 6,032
16년 전 조회 2,003
16년 전 조회 4,079
16년 전 조회 3,090
16년 전 조회 2,282
16년 전 조회 2,288
16년 전 조회 4,443
16년 전 조회 3,360
16년 전 조회 2,885
16년 전 조회 3,028
16년 전 조회 2,149
16년 전 조회 1,832
16년 전 조회 1,746
16년 전 조회 1,463
16년 전 조회 1,730
16년 전 조회 1,969
16년 전 조회 1,660
16년 전 조회 4,905
16년 전 조회 3,885
16년 전 조회 1,853
16년 전 조회 1,599
16년 전 조회 2,341
16년 전 조회 4,575
16년 전 조회 3,609
16년 전 조회 2,644
16년 전 조회 4,389
16년 전 조회 3,249
16년 전 조회 1,418
16년 전 조회 1,432
16년 전 조회 2,093
16년 전 조회 1,937
16년 전 조회 2,621
16년 전 조회 2,286
16년 전 조회 1,423
16년 전 조회 4,445
16년 전 조회 1,539
16년 전 조회 1,833
16년 전 조회 2,258
16년 전 조회 3,899
16년 전 조회 2,801
16년 전 조회 1,547
16년 전 조회 4,071
16년 전 조회 1,451
16년 전 조회 1,641
16년 전 조회 1,306
16년 전 조회 1,772
16년 전 조회 1,672