가상커서 이동을 위한 스크립트 수정
This commit is contained in:
18
js/wrest.js
18
js/wrest.js
@ -324,16 +324,16 @@ function wrestSubmit()
|
|||||||
|
|
||||||
if (wrestFld.style.display != "none") {
|
if (wrestFld.style.display != "none") {
|
||||||
var id = wrestFld.getAttribute("id");
|
var id = wrestFld.getAttribute("id");
|
||||||
var msg_el = document.getElementById(id+"_msg");
|
|
||||||
var new_href;
|
|
||||||
var curr_href = document.location.href.replace(/#.+$/, "");
|
|
||||||
|
|
||||||
if(msg_el != null) {
|
// 오류메세지를 위한 element 추가
|
||||||
msg_el.innerText = wrestMsg;
|
var msg_el = document.createElement("strong");
|
||||||
new_href = curr_href+"#"+id+"_msg";
|
msg_el.id = "msg_"+id;
|
||||||
} else {
|
msg_el.className = "msg_sound_only";
|
||||||
new_href = curr_href+"#"+id;
|
msg_el.innerHTML = wrestMsg;
|
||||||
}
|
wrestFld.parentNode.insertBefore(msg_el, wrestFld);
|
||||||
|
|
||||||
|
var new_href = document.location.href.replace(/#.+$/, "")+"#msg_"+id;
|
||||||
|
|
||||||
document.location.href = new_href;
|
document.location.href = new_href;
|
||||||
|
|
||||||
//wrestFld.style.backgroundColor = wrestFldBackColor;
|
//wrestFld.style.backgroundColor = wrestFldBackColor;
|
||||||
|
|||||||
@ -9,9 +9,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="hidden" name="url" value="<?=$outlogin_url?>">
|
<input type="hidden" name="url" value="<?=$outlogin_url?>">
|
||||||
<label for="ol_id" id="ol_idlabel">회원아이디<strong class="sound_only">필수</strong></label>
|
<label for="ol_id" id="ol_idlabel">회원아이디<strong class="sound_only">필수</strong></label>
|
||||||
<span id="ol_id_msg" class="sound_only"></span>
|
|
||||||
<input type="text" id="ol_id" name="mb_id" required class="required" maxlength="20">
|
<input type="text" id="ol_id" name="mb_id" required class="required" maxlength="20">
|
||||||
<span id="ol_pw_msg" class="sound_only"></span>
|
|
||||||
<label for="ol_pw" id="ol_pwlabel">패스워드<strong class="sound_only">필수</strong></label>
|
<label for="ol_pw" id="ol_pwlabel">패스워드<strong class="sound_only">필수</strong></label>
|
||||||
<input type="password" name="mb_password" id="ol_pw" required class="required" maxlength="20">
|
<input type="password" name="mb_password" id="ol_pw" required class="required" maxlength="20">
|
||||||
<input type="submit" id="ol_submit" value="로그인">
|
<input type="submit" id="ol_submit" value="로그인">
|
||||||
|
|||||||
Reference in New Issue
Block a user