자동등록방지코드

 

<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,216
15년 전 조회 3,431
15년 전 조회 1,819
15년 전 조회 1,772
15년 전 조회 1,921
15년 전 조회 1,609
15년 전 조회 4,010
15년 전 조회 2,927
15년 전 조회 2,107
15년 전 조회 1,689
15년 전 조회 1,922
15년 전 조회 2,411
15년 전 조회 1,485
16년 전 조회 2,420
16년 전 조회 1,753
16년 전 조회 1,852
16년 전 조회 1,501
16년 전 조회 2,197
16년 전 조회 1,528
16년 전 조회 1,942
16년 전 조회 2,129
16년 전 조회 1,200
16년 전 조회 1,270
16년 전 조회 1,917
16년 전 조회 5,358
16년 전 조회 1,659
16년 전 조회 2,171
16년 전 조회 2,363
16년 전 조회 1,522
16년 전 조회 1,325
16년 전 조회 2,240
16년 전 조회 4,957
16년 전 조회 2,227
16년 전 조회 2,887
16년 전 조회 1,765
16년 전 조회 3,620
16년 전 조회 4,454
16년 전 조회 3,118
16년 전 조회 2,365
16년 전 조회 2,455
16년 전 조회 2,698
16년 전 조회 2,189
16년 전 조회 5,529
16년 전 조회 3,385
16년 전 조회 1,379
16년 전 조회 1,721
16년 전 조회 5,096
16년 전 조회 2,331
16년 전 조회 3,427
16년 전 조회 2,669
16년 전 조회 1,582
16년 전 조회 5,378
16년 전 조회 2,493
16년 전 조회 5,986
16년 전 조회 1,961
16년 전 조회 4,038
16년 전 조회 3,050
16년 전 조회 2,237
16년 전 조회 2,253
16년 전 조회 4,416
16년 전 조회 3,321
16년 전 조회 2,851
16년 전 조회 2,990
16년 전 조회 2,108
16년 전 조회 1,788
16년 전 조회 1,702
16년 전 조회 1,421
16년 전 조회 1,693
16년 전 조회 1,922
16년 전 조회 1,621
16년 전 조회 4,860
16년 전 조회 3,846
16년 전 조회 1,813
16년 전 조회 1,556
16년 전 조회 2,300
16년 전 조회 4,532
16년 전 조회 3,568
16년 전 조회 2,597
16년 전 조회 4,353
16년 전 조회 3,219
16년 전 조회 1,377
16년 전 조회 1,395
16년 전 조회 2,054
16년 전 조회 1,901
16년 전 조회 2,586
16년 전 조회 2,247
16년 전 조회 1,388
16년 전 조회 4,400
16년 전 조회 1,499
16년 전 조회 1,797
16년 전 조회 2,224
16년 전 조회 3,863
16년 전 조회 2,753
16년 전 조회 1,510
16년 전 조회 4,031
16년 전 조회 1,415
16년 전 조회 1,598
16년 전 조회 1,263
16년 전 조회 1,737
16년 전 조회 1,637