답변 5개
</p><p><script></p><p><span style="color: rgb(45, 45, 45); font-family: 굴림; font-size: small;">document.</span><span style="color: rgb(51, 51, 51); font-family: 돋움, Dotum, sans-serif; font-size: 12px; background-color: rgb(247, 247, 247);">foutlogin</span><span style="color: rgb(45, 45, 45); font-family: 굴림; font-size: small;">.</span><span style="color: rgb(51, 51, 51); font-family: 돋움, Dotum, sans-serif; font-size: 12px; background-color: rgb(247, 247, 247);">pp_ol_id</span><span style="color: rgb(45, 45, 45); font-family: 굴림; font-size: small;">.text.style.imeMode = </span><strong style="color: rgb(45, 45, 45); font-family: 굴림; font-size: small;"></strong><span style="color: rgb(45, 45, 45); font-family: 굴림; font-size: small;">inactive; 영어를 기본 입력언어로 설정</span> </p><p><span style="font-size: 14.6667px;"></script></span> </p><p>
이런식으로 하면 되지 않을까요?
답변에 대한 댓글 2개
댓글을 작성하려면 로그인이 필요합니다.
태그안에 style 속성을 2번 쓰셨네요.
;(세미콜론)으로 붙혀서 하나로 만드세요.
</p><p>//수정전</p><p><input style="A" style="B"></p><p>//수정후</p><p><input style="A;B"></p><p>
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
* javascript를 이용하여 제어
document.form.input1.text.style.imeMode = active; 한글을 기본 입력언어로 설정
document.form.input1.text.style.imeMode = inactive; 영어를 기본 입력언어로 설정
document.form.input1.text.style.imeMode = disabled; 한글을 기본 입력언어로 설정
* css를 이용하여 제어
<input style='ime-mode:active'> 한글을 기본 입력언어로 설정
<input style='ime-mode:inactive'> 영어를 기본 입력언어로 설정
<input style='ime-mode:disabled'> 영어만 입력되도록 제한함.
단 input control의 속성이 password인 경우
화면에 입력된 값이 '*'문자로 나타나며,
값을 저장하면 한글 모드에서 입력했을지라도 영문으로 값이 입력되어 있다.
단. 크롬등 일부 타 브라우저에서 동작을 안할수가 있다.
크롬에서 안된다고 해서 정규식을 다시 찾음
각 정규식
var pattern = /[^(a-zA-Z)]/; //영문만 허용
if(pattern.test(document.getElementById('name').value)){
alert("아이디는 영문만 허용합니다.");
document.getElementById('name').value = '';
document.getElementById('name').focus();
return false;
}
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
알려주신대로 집어넣었는데 안먹히더라구요,,
<input type="text" id="pp_ol_id" style="ime-mode:disabled" name="mb_id" style="background:#fff;" required class="required" maxlength="30">
댓글을 작성하려면 로그인이 필요합니다.
<input type="text" style="ime-mode:active">한글모드로 변환
<input type="text" style="ime-mode:inactive">영문모드로 변환
<input type="text" style="ime-mode:disabled">영문만 입력가능
답변에 대한 댓글 1개
이렇게 되어 있는데 왜 안되는지 모르겠어요,,엉엉
<form name="foutlogin" action="<?php echo $outlogin_action_url ?>" onsubmit="return fhead_submit(this);" method="post" autocomplete="off">
<fieldset>
<input type="hidden" name="url" value="<?php echo $outlogin_url ?>">
<label for="pp_ol_id" id="pp_ol_idlabel">아이디<strong class="sound_only">필수</strong></label>
<input type="text" id="pp_ol_id" style="ime-mode:disabled" name="mb_id" style="background:#fff;" required class="required" maxlength="30">
<label for="pp_ol_pw" id="pp_ol_pwlabel">비밀번호<strong class="sound_only">필수</strong></label>
<input type="password" name="mb_password" id="pp_ol_pw" style="background:#fff;" required class="required" maxlength="30">
<input type="submit" id="pp_ol_submit" value="로그인">
<div id="pp_ol_svc">
<a href="<?php echo G5_BBS_URL ?>/register.php"><b>회원가입</b></a><span> | </span>
<a href="<?php echo G5_BBS_URL ?>/password_lost.php" id="ol_password_lost">아이디/비밀번호 찾기</a>
</div>
</fieldset>
</form>
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
foutlogin 이건 뭔가요?
outlogin 이거아닌가요?