자동등록방지코드

 

<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,190
15년 전 조회 3,413
15년 전 조회 1,790
15년 전 조회 1,751
15년 전 조회 1,900
15년 전 조회 1,590
15년 전 조회 3,990
15년 전 조회 2,900
15년 전 조회 2,086
15년 전 조회 1,664
15년 전 조회 1,899
15년 전 조회 2,381
15년 전 조회 1,464
15년 전 조회 2,397
15년 전 조회 1,734
15년 전 조회 1,831
15년 전 조회 1,484
15년 전 조회 2,173
15년 전 조회 1,501
15년 전 조회 1,921
16년 전 조회 2,111
16년 전 조회 1,185
16년 전 조회 1,247
16년 전 조회 1,892
16년 전 조회 5,336
16년 전 조회 1,634
16년 전 조회 2,143
16년 전 조회 2,345
16년 전 조회 1,495
16년 전 조회 1,304
16년 전 조회 2,217
16년 전 조회 4,931
16년 전 조회 2,206
16년 전 조회 2,865
16년 전 조회 1,745
16년 전 조회 3,598
16년 전 조회 4,436
16년 전 조회 3,103
16년 전 조회 2,350
16년 전 조회 2,430
16년 전 조회 2,682
16년 전 조회 2,166
16년 전 조회 5,508
16년 전 조회 3,364
16년 전 조회 1,352
16년 전 조회 1,697
16년 전 조회 5,072
16년 전 조회 2,303
16년 전 조회 3,409
16년 전 조회 2,645
16년 전 조회 1,559
16년 전 조회 5,355
16년 전 조회 2,473
16년 전 조회 5,963
16년 전 조회 1,940
16년 전 조회 4,013
16년 전 조회 3,031
16년 전 조회 2,215
16년 전 조회 2,235
16년 전 조회 4,403
16년 전 조회 3,297
16년 전 조회 2,829
16년 전 조회 2,968
16년 전 조회 2,083
16년 전 조회 1,769
16년 전 조회 1,680
16년 전 조회 1,404
16년 전 조회 1,672
16년 전 조회 1,901
16년 전 조회 1,593
16년 전 조회 4,841
16년 전 조회 3,824
16년 전 조회 1,792
16년 전 조회 1,534
16년 전 조회 2,273
16년 전 조회 4,516
16년 전 조회 3,542
16년 전 조회 2,580
16년 전 조회 4,341
16년 전 조회 3,203
16년 전 조회 1,353
16년 전 조회 1,375
16년 전 조회 2,038
16년 전 조회 1,883
16년 전 조회 2,560
16년 전 조회 2,231
16년 전 조회 1,360
16년 전 조회 4,380
16년 전 조회 1,478
16년 전 조회 1,781
16년 전 조회 2,206
16년 전 조회 3,840
16년 전 조회 2,735
16년 전 조회 1,489
16년 전 조회 4,013
16년 전 조회 1,394
16년 전 조회 1,577
16년 전 조회 1,244
16년 전 조회 1,718
16년 전 조회 1,616
🐛 버그신고