자동등록방지코드

 

<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,204
15년 전 조회 3,424
15년 전 조회 1,805
15년 전 조회 1,763
15년 전 조회 1,908
15년 전 조회 1,600
15년 전 조회 4,005
15년 전 조회 2,915
15년 전 조회 2,098
15년 전 조회 1,678
15년 전 조회 1,914
15년 전 조회 2,396
15년 전 조회 1,477
15년 전 조회 2,412
16년 전 조회 1,743
16년 전 조회 1,843
16년 전 조회 1,493
16년 전 조회 2,183
16년 전 조회 1,517
16년 전 조회 1,930
16년 전 조회 2,121
16년 전 조회 1,193
16년 전 조회 1,261
16년 전 조회 1,908
16년 전 조회 5,348
16년 전 조회 1,648
16년 전 조회 2,160
16년 전 조회 2,360
16년 전 조회 1,511
16년 전 조회 1,314
16년 전 조회 2,230
16년 전 조회 4,943
16년 전 조회 2,217
16년 전 조회 2,878
16년 전 조회 1,756
16년 전 조회 3,611
16년 전 조회 4,446
16년 전 조회 3,112
16년 전 조회 2,358
16년 전 조회 2,447
16년 전 조회 2,691
16년 전 조회 2,180
16년 전 조회 5,519
16년 전 조회 3,378
16년 전 조회 1,368
16년 전 조회 1,709
16년 전 조회 5,081
16년 전 조회 2,321
16년 전 조회 3,420
16년 전 조회 2,659
16년 전 조회 1,574
16년 전 조회 5,368
16년 전 조회 2,481
16년 전 조회 5,975
16년 전 조회 1,952
16년 전 조회 4,025
16년 전 조회 3,041
16년 전 조회 2,227
16년 전 조회 2,247
16년 전 조회 4,409
16년 전 조회 3,308
16년 전 조회 2,843
16년 전 조회 2,982
16년 전 조회 2,099
16년 전 조회 1,779
16년 전 조회 1,693
16년 전 조회 1,413
16년 전 조회 1,684
16년 전 조회 1,915
16년 전 조회 1,611
16년 전 조회 4,851
16년 전 조회 3,839
16년 전 조회 1,804
16년 전 조회 1,548
16년 전 조회 2,291
16년 전 조회 4,525
16년 전 조회 3,559
16년 전 조회 2,592
16년 전 조회 4,349
16년 전 조회 3,215
16년 전 조회 1,366
16년 전 조회 1,386
16년 전 조회 2,045
16년 전 조회 1,893
16년 전 조회 2,575
16년 전 조회 2,241
16년 전 조회 1,381
16년 전 조회 4,394
16년 전 조회 1,490
16년 전 조회 1,794
16년 전 조회 2,219
16년 전 조회 3,852
16년 전 조회 2,746
16년 전 조회 1,505
16년 전 조회 4,025
16년 전 조회 1,405
16년 전 조회 1,590
16년 전 조회 1,256
16년 전 조회 1,729
16년 전 조회 1,629