자동등록방지코드

 

<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,228
15년 전 조회 3,446
15년 전 조회 1,832
15년 전 조회 1,780
15년 전 조회 1,931
15년 전 조회 1,620
15년 전 조회 4,019
15년 전 조회 2,945
15년 전 조회 2,115
15년 전 조회 1,700
15년 전 조회 1,936
15년 전 조회 2,420
16년 전 조회 1,495
16년 전 조회 2,427
16년 전 조회 1,756
16년 전 조회 1,863
16년 전 조회 1,513
16년 전 조회 2,207
16년 전 조회 1,540
16년 전 조회 1,951
16년 전 조회 2,135
16년 전 조회 1,211
16년 전 조회 1,280
16년 전 조회 1,927
16년 전 조회 5,370
16년 전 조회 1,672
16년 전 조회 2,184
16년 전 조회 2,373
16년 전 조회 1,529
16년 전 조회 1,334
16년 전 조회 2,253
16년 전 조회 4,967
16년 전 조회 2,238
16년 전 조회 2,896
16년 전 조회 1,774
16년 전 조회 3,626
16년 전 조회 4,464
16년 전 조회 3,130
16년 전 조회 2,376
16년 전 조회 2,464
16년 전 조회 2,707
16년 전 조회 2,203
16년 전 조회 5,537
16년 전 조회 3,394
16년 전 조회 1,384
16년 전 조회 1,731
16년 전 조회 5,100
16년 전 조회 2,345
16년 전 조회 3,432
16년 전 조회 2,676
16년 전 조회 1,589
16년 전 조회 5,389
16년 전 조회 2,504
16년 전 조회 5,998
16년 전 조회 1,970
16년 전 조회 4,049
16년 전 조회 3,059
16년 전 조회 2,251
16년 전 조회 2,262
16년 전 조회 4,426
16년 전 조회 3,329
16년 전 조회 2,860
16년 전 조회 3,001
16년 전 조회 2,122
16년 전 조회 1,800
16년 전 조회 1,714
16년 전 조회 1,430
16년 전 조회 1,699
16년 전 조회 1,938
16년 전 조회 1,632
16년 전 조회 4,874
16년 전 조회 3,853
16년 전 조회 1,824
16년 전 조회 1,562
16년 전 조회 2,308
16년 전 조회 4,549
16년 전 조회 3,579
16년 전 조회 2,603
16년 전 조회 4,361
16년 전 조회 3,228
16년 전 조회 1,384
16년 전 조회 1,401
16년 전 조회 2,064
16년 전 조회 1,907
16년 전 조회 2,593
16년 전 조회 2,255
16년 전 조회 1,395
16년 전 조회 4,409
16년 전 조회 1,509
16년 전 조회 1,804
16년 전 조회 2,231
16년 전 조회 3,868
16년 전 조회 2,757
16년 전 조회 1,517
16년 전 조회 4,040
16년 전 조회 1,426
16년 전 조회 1,605
16년 전 조회 1,274
16년 전 조회 1,743
16년 전 조회 1,645