자동등록방지코드

 

<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,199
15년 전 조회 3,421
15년 전 조회 1,800
15년 전 조회 1,760
15년 전 조회 1,905
15년 전 조회 1,598
15년 전 조회 3,998
15년 전 조회 2,911
15년 전 조회 2,092
15년 전 조회 1,673
15년 전 조회 1,908
15년 전 조회 2,390
15년 전 조회 1,470
15년 전 조회 2,407
15년 전 조회 1,739
15년 전 조회 1,839
15년 전 조회 1,493
15년 전 조회 2,176
15년 전 조회 1,510
15년 전 조회 1,925
16년 전 조회 2,115
16년 전 조회 1,188
16년 전 조회 1,254
16년 전 조회 1,902
16년 전 조회 5,342
16년 전 조회 1,641
16년 전 조회 2,152
16년 전 조회 2,350
16년 전 조회 1,505
16년 전 조회 1,310
16년 전 조회 2,227
16년 전 조회 4,939
16년 전 조회 2,214
16년 전 조회 2,870
16년 전 조회 1,754
16년 전 조회 3,606
16년 전 조회 4,444
16년 전 조회 3,108
16년 전 조회 2,354
16년 전 조회 2,438
16년 전 조회 2,686
16년 전 조회 2,174
16년 전 조회 5,515
16년 전 조회 3,372
16년 전 조회 1,363
16년 전 조회 1,706
16년 전 조회 5,078
16년 전 조회 2,312
16년 전 조회 3,416
16년 전 조회 2,653
16년 전 조회 1,569
16년 전 조회 5,361
16년 전 조회 2,478
16년 전 조회 5,970
16년 전 조회 1,948
16년 전 조회 4,019
16년 전 조회 3,036
16년 전 조회 2,222
16년 전 조회 2,241
16년 전 조회 4,406
16년 전 조회 3,301
16년 전 조회 2,839
16년 전 조회 2,975
16년 전 조회 2,093
16년 전 조회 1,773
16년 전 조회 1,686
16년 전 조회 1,409
16년 전 조회 1,680
16년 전 조회 1,911
16년 전 조회 1,602
16년 전 조회 4,848
16년 전 조회 3,832
16년 전 조회 1,801
16년 전 조회 1,545
16년 전 조회 2,280
16년 전 조회 4,523
16년 전 조회 3,551
16년 전 조회 2,585
16년 전 조회 4,346
16년 전 조회 3,211
16년 전 조회 1,360
16년 전 조회 1,380
16년 전 조회 2,044
16년 전 조회 1,888
16년 전 조회 2,572
16년 전 조회 2,239
16년 전 조회 1,369
16년 전 조회 4,388
16년 전 조회 1,484
16년 전 조회 1,788
16년 전 조회 2,213
16년 전 조회 3,850
16년 전 조회 2,745
16년 전 조회 1,499
16년 전 조회 4,020
16년 전 조회 1,403
16년 전 조회 1,582
16년 전 조회 1,253
16년 전 조회 1,724
16년 전 조회 1,625
🐛 버그신고