자동등록방지코드

 

<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,601
16년 전 조회 3,831
16년 전 조회 2,186
16년 전 조회 2,149
16년 전 조회 2,294
16년 전 조회 1,995
16년 전 조회 4,407
16년 전 조회 3,330
16년 전 조회 2,481
16년 전 조회 2,084
16년 전 조회 2,279
16년 전 조회 2,780
16년 전 조회 1,853
16년 전 조회 2,781
16년 전 조회 2,114
16년 전 조회 2,243
16년 전 조회 1,882
16년 전 조회 2,597
16년 전 조회 1,893
16년 전 조회 2,316
16년 전 조회 2,484
16년 전 조회 1,582
16년 전 조회 1,641
16년 전 조회 2,289
16년 전 조회 5,704
16년 전 조회 2,024
16년 전 조회 2,534
16년 전 조회 2,724
16년 전 조회 1,886
16년 전 조회 1,661
16년 전 조회 2,593
16년 전 조회 5,313
16년 전 조회 2,578
16년 전 조회 3,250
16년 전 조회 2,105
16년 전 조회 3,989
16년 전 조회 4,809
16년 전 조회 3,442
16년 전 조회 2,700
16년 전 조회 2,812
16년 전 조회 3,028
16년 전 조회 2,571
16년 전 조회 5,902
16년 전 조회 3,735
16년 전 조회 1,713
16년 전 조회 2,060
16년 전 조회 5,425
16년 전 조회 2,691
16년 전 조회 3,755
16년 전 조회 3,037
16년 전 조회 1,914
16년 전 조회 5,735
16년 전 조회 2,846
16년 전 조회 6,338
16년 전 조회 2,301
16년 전 조회 4,363
16년 전 조회 3,381
16년 전 조회 2,561
16년 전 조회 2,580
16년 전 조회 4,715
16년 전 조회 3,642
16년 전 조회 3,179
16년 전 조회 3,314
16년 전 조회 2,439
16년 전 조회 2,100
16년 전 조회 2,037
16년 전 조회 1,734
16년 전 조회 2,047
16년 전 조회 2,239
16년 전 조회 1,939
16년 전 조회 5,186
16년 전 조회 4,186
16년 전 조회 2,127
16년 전 조회 1,898
16년 전 조회 2,620
16년 전 조회 4,876
16년 전 조회 3,891
16년 전 조회 2,935
16년 전 조회 4,669
16년 전 조회 3,528
16년 전 조회 1,682
16년 전 조회 1,718
16년 전 조회 2,374
16년 전 조회 2,218
16년 전 조회 2,939
16년 전 조회 2,557
16년 전 조회 1,690
16년 전 조회 4,736
16년 전 조회 1,823
16년 전 조회 2,122
16년 전 조회 2,549
16년 전 조회 4,211
16년 전 조회 3,097
16년 전 조회 1,826
16년 전 조회 4,373
16년 전 조회 1,740
16년 전 조회 1,901
16년 전 조회 1,586
16년 전 조회 2,049
16년 전 조회 1,961