캡챠 아이프레임

This commit is contained in:
whitedot
2013-01-10 17:23:11 +09:00
parent 6d7d897801
commit 81a30d5587
3 changed files with 23 additions and 18 deletions

View File

@ -2,7 +2,7 @@
/* 초기화 */ /* 초기화 */
html {overflow-y:scroll} html {overflow-y:scroll}
body {background:#fff;font-size:1em} body {margin:0;padding:0;background:#fff;font-size:1em}
html, body, h1, h2, h3, h4, h5, h6 {margin:0 0 0;padding:0} html, body, h1, h2, h3, h4, h5, h6 {margin:0 0 0;padding:0}
h1, h2, h3, h4, h5, h6 {font-family:"verdana","dotum"} h1, h2, h3, h4, h5, h6 {font-family:"verdana","dotum"}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
@ -16,6 +16,11 @@ hr {display:none}
/* 웹접근성 스킬 */ /* 웹접근성 스킬 */
.sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;overflow:hidden} .sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;overflow:hidden}
/* 자동등록방지 */
.captcha {display:inline-block;vertical-align:middle}
.captcha label {display:inline-block;margin:0;padding:0;width:0;height:0;overflow:hidden}
.captcha iframe {margin:0;padding:0;width:80px;height:25px;border:0;overflow:hidden}
/* 기본테이블 */ /* 기본테이블 */
table {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0} table {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0}
tfoot td {background:#f9f9f5;font-weight:bold;text-align:center} tfoot td {background:#f9f9f5;font-weight:bold;text-align:center}

View File

@ -144,15 +144,15 @@ function captcha_html($input_name, $captcha_id_suffix='')
// 세션생성을 한후 다음페이지에서 해당 세션이 있을때만 올바른 캡챠코드인지 비교합니다. // 세션생성을 한후 다음페이지에서 해당 세션이 있을때만 올바른 캡챠코드인지 비교합니다.
set_session('ss_captcha_use', true); set_session('ss_captcha_use', true);
$html = '<fieldset id="captcha'.$captcha_id_suffix.'">'; $html = '<fieldset id="captcha'.$captcha_id_suffix.'" class="captcha">';
$html .= '<legend>자동등록방지</legend>'; $html .= '<legend class="sound_only">자동등록방지</legend>';
//$html .= '<img src="" id="captcha" alt="자동등록방지 이미지" title="이미지를 클릭하시면 숫자가 바뀝니다.">'; //$html .= '<img src="" id="captcha" alt="자동등록방지 이미지" title="이미지를 클릭하시면 숫자가 바뀝니다.">';
$html .= '<iframe id="captcha_iframe" name="captcha_iframe" src="'.$g4['path'].'/plugin/captcha/run.php" width="80" height="25" frameborder="0" scrolling="no"></iframe>'; $html .= '<iframe id="captcha_iframe" name="captcha_iframe" src="'.$g4['path'].'/plugin/captcha/run.php" title="자동등록방지숫자"></iframe>';
$html .= '<a href="'.$g4['path'].'/plugin/captcha/run.php" target="captcha_iframe">새로고침</a>'; $html .= '<a href="'.$g4['path'].'/plugin/captcha/run.php" target="captcha_iframe">새로고침</a>';
$html .= '<a href="'.$g4['path'].'/plugin/captcha/wav.php" id="captcha_wav">wav</a>'; $html .= '<a href="'.$g4['path'].'/plugin/captcha/wav.php" id="captcha_wav">음성듣기</a>';
$html .= '<label>자동등록방지 입력</label>'; $html .= '<label for="captcha_key">자동등록방지 입력</label>';
$html .= '<input type="text" id="captcha_key" name="'.$input_name.'" class="captcha_box frm_input" size="10" maxlength="5" required title="자동등록방지 입력">'; $html .= '<input type="text" id="captcha_key" name="'.$input_name.'" class="captcha_box fieldset_input" size="10" maxlength="5" required title="자동등록방지 입력">';
$html .= '<p>이미지의 숫자를 순서대로 입력하세요. 새로고침을 클릭하시면 새로운 숫자가 나타납니다.</p>'; $html .= '<p class="sound_only">이미지의 숫자를 순서대로 입력하세요. 새로고침을 클릭하시면 새로운 숫자가 나타납니다.</p>';
$html .= '</fieldset>'; $html .= '</fieldset>';
return $html; return $html;
} }