자동등록방지코드

 

<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,253
15년 전 조회 3,480
15년 전 조회 1,858
15년 전 조회 1,805
15년 전 조회 1,948
15년 전 조회 1,651
15년 전 조회 4,045
15년 전 조회 2,975
15년 전 조회 2,143
16년 전 조회 1,730
16년 전 조회 1,962
16년 전 조회 2,445
16년 전 조회 1,523
16년 전 조회 2,449
16년 전 조회 1,787
16년 전 조회 1,889
16년 전 조회 1,537
16년 전 조회 2,236
16년 전 조회 1,565
16년 전 조회 1,980
16년 전 조회 2,163
16년 전 조회 1,235
16년 전 조회 1,305
16년 전 조회 1,953
16년 전 조회 5,389
16년 전 조회 1,696
16년 전 조회 2,214
16년 전 조회 2,403
16년 전 조회 1,556
16년 전 조회 1,359
16년 전 조회 2,282
16년 전 조회 4,997
16년 전 조회 2,263
16년 전 조회 2,924
16년 전 조회 1,802
16년 전 조회 3,654
16년 전 조회 4,492
16년 전 조회 3,148
16년 전 조회 2,405
16년 전 조회 2,493
16년 전 조회 2,733
16년 전 조회 2,223
16년 전 조회 5,566
16년 전 조회 3,417
16년 전 조회 1,414
16년 전 조회 1,752
16년 전 조회 5,129
16년 전 조회 2,370
16년 전 조회 3,463
16년 전 조회 2,700
16년 전 조회 1,609
16년 전 조회 5,418
16년 전 조회 2,525
16년 전 조회 6,027
16년 전 조회 1,995
16년 전 조회 4,075
16년 전 조회 3,084
16년 전 조회 2,275
16년 전 조회 2,284
16년 전 조회 4,441
16년 전 조회 3,354
16년 전 조회 2,882
16년 전 조회 3,021
16년 전 조회 2,146
16년 전 조회 1,825
16년 전 조회 1,743
16년 전 조회 1,457
16년 전 조회 1,723
16년 전 조회 1,958
16년 전 조회 1,654
16년 전 조회 4,899
16년 전 조회 3,878
16년 전 조회 1,847
16년 전 조회 1,591
16년 전 조회 2,338
16년 전 조회 4,570
16년 전 조회 3,604
16년 전 조회 2,638
16년 전 조회 4,387
16년 전 조회 3,248
16년 전 조회 1,410
16년 전 조회 1,429
16년 전 조회 2,088
16년 전 조회 1,929
16년 전 조회 2,615
16년 전 조회 2,276
16년 전 조회 1,420
16년 전 조회 4,438
16년 전 조회 1,533
16년 전 조회 1,829
16년 전 조회 2,255
16년 전 조회 3,895
16년 전 조회 2,794
16년 전 조회 1,540
16년 전 조회 4,066
16년 전 조회 1,447
16년 전 조회 1,632
16년 전 조회 1,298
16년 전 조회 1,768
16년 전 조회 1,665