자동등록방지코드

 

<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,473
15년 전 조회 3,710
15년 전 조회 2,069
16년 전 조회 2,022
16년 전 조회 2,167
16년 전 조회 1,868
16년 전 조회 4,308
16년 전 조회 3,196
16년 전 조회 2,364
16년 전 조회 1,948
16년 전 조회 2,153
16년 전 조회 2,655
16년 전 조회 1,731
16년 전 조회 2,656
16년 전 조회 1,980
16년 전 조회 2,114
16년 전 조회 1,761
16년 전 조회 2,455
16년 전 조회 1,781
16년 전 조회 2,198
16년 전 조회 2,362
16년 전 조회 1,453
16년 전 조회 1,520
16년 전 조회 2,171
16년 전 조회 5,591
16년 전 조회 1,887
16년 전 조회 2,412
16년 전 조회 2,609
16년 전 조회 1,763
16년 전 조회 1,552
16년 전 조회 2,471
16년 전 조회 5,182
16년 전 조회 2,460
16년 전 조회 3,124
16년 전 조회 1,992
16년 전 조회 3,860
16년 전 조회 4,696
16년 전 조회 3,342
16년 전 조회 2,587
16년 전 조회 2,677
16년 전 조회 2,919
16년 전 조회 2,429
16년 전 조회 5,812
16년 전 조회 3,616
16년 전 조회 1,605
16년 전 조회 1,948
16년 전 조회 5,316
16년 전 조회 2,572
16년 전 조회 3,644
16년 전 조회 2,926
16년 전 조회 1,796
16년 전 조회 5,641
16년 전 조회 2,752
16년 전 조회 6,217
16년 전 조회 2,179
16년 전 조회 4,248
16년 전 조회 3,277
16년 전 조회 2,457
16년 전 조회 2,467
16년 전 조회 4,641
16년 전 조회 3,530
16년 전 조회 3,065
16년 전 조회 3,206
16년 전 조회 2,323
16년 전 조회 2,006
16년 전 조회 1,919
16년 전 조회 1,625
16년 전 조회 1,924
16년 전 조회 2,142
16년 전 조회 1,836
16년 전 조회 5,075
16년 전 조회 4,102
16년 전 조회 2,019
16년 전 조회 1,783
16년 전 조회 2,504
16년 전 조회 4,793
16년 전 조회 3,772
16년 전 조회 2,822
16년 전 조회 4,552
16년 전 조회 3,419
16년 전 조회 1,591
16년 전 조회 1,602
16년 전 조회 2,263
16년 전 조회 2,112
16년 전 조회 2,849
16년 전 조회 2,450
16년 전 조회 1,588
16년 전 조회 4,626
16년 전 조회 1,719
16년 전 조회 2,025
16년 전 조회 2,432
16년 전 조회 4,118
16년 전 조회 3,008
16년 전 조회 1,713
16년 전 조회 4,292
16년 전 조회 1,620
16년 전 조회 1,797
16년 전 조회 1,476
16년 전 조회 1,941
16년 전 조회 1,852