자동등록방지코드

 

<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="자동등록방지">&nbsp;&nbsp;왼쪽의 글자를 입력하세요.
    <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,183
15년 전 조회 3,406
15년 전 조회 1,786
15년 전 조회 1,747
15년 전 조회 1,890
15년 전 조회 1,584
15년 전 조회 3,983
15년 전 조회 2,896
15년 전 조회 2,082
15년 전 조회 1,660
15년 전 조회 1,895
15년 전 조회 2,377
15년 전 조회 1,460
15년 전 조회 2,393
15년 전 조회 1,726
15년 전 조회 1,826
15년 전 조회 1,478
15년 전 조회 2,167
15년 전 조회 1,498
15년 전 조회 1,913
16년 전 조회 2,105
16년 전 조회 1,180
16년 전 조회 1,240
16년 전 조회 1,886
16년 전 조회 5,329
16년 전 조회 1,631
16년 전 조회 2,140
16년 전 조회 2,341
16년 전 조회 1,489
16년 전 조회 1,297
16년 전 조회 2,212
16년 전 조회 4,926
16년 전 조회 2,202
16년 전 조회 2,858
16년 전 조회 1,739
16년 전 조회 3,592
16년 전 조회 4,430
16년 전 조회 3,099
16년 전 조회 2,344
16년 전 조회 2,425
16년 전 조회 2,674
16년 전 조회 2,162
16년 전 조회 5,504
16년 전 조회 3,356
16년 전 조회 1,348
16년 전 조회 1,695
16년 전 조회 5,064
16년 전 조회 2,299
16년 전 조회 3,406
16년 전 조회 2,639
16년 전 조회 1,557
16년 전 조회 5,351
16년 전 조회 2,465
16년 전 조회 5,958
16년 전 조회 1,934
16년 전 조회 4,009
16년 전 조회 3,025
16년 전 조회 2,210
16년 전 조회 2,229
16년 전 조회 4,403
16년 전 조회 3,290
16년 전 조회 2,827
16년 전 조회 2,962
16년 전 조회 2,079
16년 전 조회 1,765
16년 전 조회 1,675
16년 전 조회 1,398
16년 전 조회 1,668
16년 전 조회 1,897
16년 전 조회 1,588
16년 전 조회 4,837
16년 전 조회 3,819
16년 전 조회 1,785
16년 전 조회 1,529
16년 전 조회 2,268
16년 전 조회 4,511
16년 전 조회 3,538
16년 전 조회 2,575
16년 전 조회 4,333
16년 전 조회 3,202
16년 전 조회 1,349
16년 전 조회 1,368
16년 전 조회 2,032
16년 전 조회 1,879
16년 전 조회 2,555
16년 전 조회 2,226
16년 전 조회 1,358
16년 전 조회 4,377
16년 전 조회 1,473
16년 전 조회 1,778
16년 전 조회 2,200
16년 전 조회 3,834
16년 전 조회 2,730
16년 전 조회 1,484
16년 전 조회 4,007
16년 전 조회 1,390
16년 전 조회 1,574
16년 전 조회 1,239
16년 전 조회 1,712
16년 전 조회 1,610
🐛 버그신고