자동등록방지코드

 

<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,186
15년 전 조회 3,406
15년 전 조회 1,789
15년 전 조회 1,748
15년 전 조회 1,896
15년 전 조회 1,586
15년 전 조회 3,984
15년 전 조회 2,898
15년 전 조회 2,084
15년 전 조회 1,660
15년 전 조회 1,896
15년 전 조회 2,379
15년 전 조회 1,462
15년 전 조회 2,395
15년 전 조회 1,728
15년 전 조회 1,828
15년 전 조회 1,479
15년 전 조회 2,170
15년 전 조회 1,499
15년 전 조회 1,917
16년 전 조회 2,108
16년 전 조회 1,183
16년 전 조회 1,243
16년 전 조회 1,887
16년 전 조회 5,332
16년 전 조회 1,634
16년 전 조회 2,142
16년 전 조회 2,342
16년 전 조회 1,490
16년 전 조회 1,300
16년 전 조회 2,213
16년 전 조회 4,930
16년 전 조회 2,205
16년 전 조회 2,858
16년 전 조회 1,742
16년 전 조회 3,594
16년 전 조회 4,432
16년 전 조회 3,100
16년 전 조회 2,345
16년 전 조회 2,429
16년 전 조회 2,678
16년 전 조회 2,162
16년 전 조회 5,505
16년 전 조회 3,358
16년 전 조회 1,350
16년 전 조회 1,696
16년 전 조회 5,067
16년 전 조회 2,301
16년 전 조회 3,408
16년 전 조회 2,640
16년 전 조회 1,557
16년 전 조회 5,354
16년 전 조회 2,466
16년 전 조회 5,960
16년 전 조회 1,937
16년 전 조회 4,011
16년 전 조회 3,026
16년 전 조회 2,211
16년 전 조회 2,232
16년 전 조회 4,403
16년 전 조회 3,292
16년 전 조회 2,827
16년 전 조회 2,966
16년 전 조회 2,081
16년 전 조회 1,766
16년 전 조회 1,678
16년 전 조회 1,399
16년 전 조회 1,669
16년 전 조회 1,900
16년 전 조회 1,590
16년 전 조회 4,839
16년 전 조회 3,821
16년 전 조회 1,789
16년 전 조회 1,532
16년 전 조회 2,271
16년 전 조회 4,513
16년 전 조회 3,539
16년 전 조회 2,578
16년 전 조회 4,336
16년 전 조회 3,202
16년 전 조회 1,352
16년 전 조회 1,369
16년 전 조회 2,033
16년 전 조회 1,879
16년 전 조회 2,558
16년 전 조회 2,228
16년 전 조회 1,359
16년 전 조회 4,377
16년 전 조회 1,475
16년 전 조회 1,780
16년 전 조회 2,201
16년 전 조회 3,836
16년 전 조회 2,732
16년 전 조회 1,485
16년 전 조회 4,010
16년 전 조회 1,393
16년 전 조회 1,576
16년 전 조회 1,241
16년 전 조회 1,714
16년 전 조회 1,613
🐛 버그신고