자동등록방지코드

 

<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,245
15년 전 조회 3,464
15년 전 조회 1,847
15년 전 조회 1,794
15년 전 조회 1,944
15년 전 조회 1,635
15년 전 조회 4,033
15년 전 조회 2,958
15년 전 조회 2,127
16년 전 조회 1,714
16년 전 조회 1,949
16년 전 조회 2,433
16년 전 조회 1,511
16년 전 조회 2,441
16년 전 조회 1,777
16년 전 조회 1,879
16년 전 조회 1,524
16년 전 조회 2,220
16년 전 조회 1,554
16년 전 조회 1,967
16년 전 조회 2,148
16년 전 조회 1,224
16년 전 조회 1,296
16년 전 조회 1,942
16년 전 조회 5,385
16년 전 조회 1,685
16년 전 조회 2,202
16년 전 조회 2,389
16년 전 조회 1,544
16년 전 조회 1,351
16년 전 조회 2,268
16년 전 조회 4,988
16년 전 조회 2,254
16년 전 조회 2,914
16년 전 조회 1,790
16년 전 조회 3,644
16년 전 조회 4,482
16년 전 조회 3,140
16년 전 조회 2,393
16년 전 조회 2,482
16년 전 조회 2,724
16년 전 조회 2,215
16년 전 조회 5,557
16년 전 조회 3,405
16년 전 조회 1,401
16년 전 조회 1,744
16년 전 조회 5,115
16년 전 조회 2,359
16년 전 조회 3,450
16년 전 조회 2,692
16년 전 조회 1,599
16년 전 조회 5,403
16년 전 조회 2,519
16년 전 조회 6,005
16년 전 조회 1,987
16년 전 조회 4,061
16년 전 조회 3,075
16년 전 조회 2,265
16년 전 조회 2,275
16년 전 조회 4,436
16년 전 조회 3,344
16년 전 조회 2,872
16년 전 조회 3,013
16년 전 조회 2,131
16년 전 조회 1,813
16년 전 조회 1,732
16년 전 조회 1,447
16년 전 조회 1,711
16년 전 조회 1,949
16년 전 조회 1,644
16년 전 조회 4,887
16년 전 조회 3,866
16년 전 조회 1,840
16년 전 조회 1,580
16년 전 조회 2,321
16년 전 조회 4,562
16년 전 조회 3,594
16년 전 조회 2,623
16년 전 조회 4,376
16년 전 조회 3,240
16년 전 조회 1,399
16년 전 조회 1,418
16년 전 조회 2,076
16년 전 조회 1,920
16년 전 조회 2,608
16년 전 조회 2,268
16년 전 조회 1,408
16년 전 조회 4,429
16년 전 조회 1,520
16년 전 조회 1,818
16년 전 조회 2,241
16년 전 조회 3,880
16년 전 조회 2,782
16년 전 조회 1,531
16년 전 조회 4,053
16년 전 조회 1,441
16년 전 조회 1,623
16년 전 조회 1,287
16년 전 조회 1,761
16년 전 조회 1,658