KCAPTCHA 캡챠 플러그인 추가

This commit is contained in:
gnuboard
2013-10-10 15:48:07 +09:00
parent a253bea015
commit f2d63ee9be
77 changed files with 547 additions and 38 deletions

View File

@ -6,7 +6,7 @@ function chk_captcha()
var captcha_result = false;
$.ajax({
type: "POST",
url: g5_gcaptcha_url+"/get.php",
url: g5_captcha_url+"/get.php",
data: {
"captcha_key": captcha_key.value
},
@ -19,6 +19,7 @@ function chk_captcha()
if (!captcha_result) {
alert("자동등록방지 숫자가 틀렸습니다.");
captcha_key.select();
captcha_key.focus();
return false;
}
return true;
@ -26,7 +27,7 @@ function chk_captcha()
$(function() {
$("#captcha").click(function(e) {
this.setAttribute("src", g5_url+"/plugin/gcaptcha/run.php?t="+(new Date).getTime());
this.setAttribute("src", g5_captcha_url+"/run.php?t="+(new Date).getTime());
var keycode = (e.keyCode ? e.keyCode : e.which);
// 첫 실행에서는 포커스를 주지 않음
if (typeof(keycode) != "undefined") {