자동등록방지코드

 

<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,366
15년 전 조회 3,597
15년 전 조회 1,956
15년 전 조회 1,909
15년 전 조회 2,047
15년 전 조회 1,753
16년 전 조회 4,185
16년 전 조회 3,075
16년 전 조회 2,230
16년 전 조회 1,826
16년 전 조회 2,032
16년 전 조회 2,534
16년 전 조회 1,617
16년 전 조회 2,548
16년 전 조회 1,874
16년 전 조회 1,987
16년 전 조회 1,644
16년 전 조회 2,340
16년 전 조회 1,652
16년 전 조회 2,079
16년 전 조회 2,260
16년 전 조회 1,345
16년 전 조회 1,411
16년 전 조회 2,057
16년 전 조회 5,483
16년 전 조회 1,777
16년 전 조회 2,293
16년 전 조회 2,487
16년 전 조회 1,662
16년 전 조회 1,433
16년 전 조회 2,365
16년 전 조회 5,077
16년 전 조회 2,345
16년 전 조회 3,013
16년 전 조회 1,878
16년 전 조회 3,739
16년 전 조회 4,587
16년 전 조회 3,231
16년 전 조회 2,485
16년 전 조회 2,576
16년 전 조회 2,809
16년 전 조회 2,314
16년 전 조회 5,696
16년 전 조회 3,508
16년 전 조회 1,501
16년 전 조회 1,840
16년 전 조회 5,208
16년 전 조회 2,451
16년 전 조회 3,539
16년 전 조회 2,818
16년 전 조회 1,693
16년 전 조회 5,524
16년 전 조회 2,637
16년 전 조회 6,118
16년 전 조회 2,072
16년 전 조회 4,149
16년 전 조회 3,169
16년 전 조회 2,355
16년 전 조회 2,376
16년 전 조회 4,545
16년 전 조회 3,422
16년 전 조회 2,962
16년 전 조회 3,105
16년 전 조회 2,218
16년 전 조회 1,901
16년 전 조회 1,828
16년 전 조회 1,526
16년 전 조회 1,815
16년 전 조회 2,037
16년 전 조회 1,731
16년 전 조회 4,982
16년 전 조회 3,990
16년 전 조회 1,923
16년 전 조회 1,671
16년 전 조회 2,423
16년 전 조회 4,690
16년 전 조회 3,680
16년 전 조회 2,729
16년 전 조회 4,465
16년 전 조회 3,337
16년 전 조회 1,486
16년 전 조회 1,509
16년 전 조회 2,175
16년 전 조회 2,017
16년 전 조회 2,748
16년 전 조회 2,355
16년 전 조회 1,508
16년 전 조회 4,534
16년 전 조회 1,617
16년 전 조회 1,920
16년 전 조회 2,339
16년 전 조회 4,005
16년 전 조회 2,907
16년 전 조회 1,609
16년 전 조회 4,185
16년 전 조회 1,535
16년 전 조회 1,711
16년 전 조회 1,378
16년 전 조회 1,849
16년 전 조회 1,744