회원 로그인부분과 회원정보 수정부분이요. 정보
회원 로그인부분과 회원정보 수정부분이요.본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
slr 회원로그인할때 보면 클릭하면 아이디랑 패스워드 입력하는 창 글씨가 사라지잖아요.
그거 어떻게 해야 돼요.?
<td width="112" height="18">
<input class="ed" name="mb_id" type="text" size="16" maxlength="20" required itemname="아이디" value='ID' onMouseClick='chkReset(this.form);' onFocus='chkReset(this.form);' style="font-weight:normal; font-size:8pt; color:#8893B4; font-family:Tahoma,돋움; letter-spacing:0pt; padding:0px 0px 0px 5px; border-width:1; border-color:rgb(204,204,204); border-style:solid; width:112px; height:18px;">
</td>
<td width="6" rowspan="2"></td>
<td width="52" height="18" align="left">
<input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"><span class="style7">ID저장</span></td>
</tr>
<tr>
<td width="112" id="pw1" height="18">
<input class="ed" size="16" maxlength="20" required itemname="패스워드" value='PassWord' onMouseClick='chkReset(this.form);' onfocus='chkReset(this.form);' style="font-weight:normal; font-size:8pt; color:#8893B4; font-family:Tahoma,돋움; letter-spacing:0pt; padding:0px 0px 0px 5px; border-width:1; border-color:rgb(204,204,204); border-style:solid; width:112px; height:18px;">
<td width="104" id="pw2" height="18" style="display:none; padding:0px 0px 0px 0px;">
<input class="ed" name="mb_password" type="password" size="16" maxlength="20" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' style="font-weight:normal; font-size:8pt; color:#8893B4; font-family:Tahoma,돋움; letter-spacing:0pt; padding:0px 0px 0px 5px; border-width:1; border-color:rgb(204,204,204); border-style:solid; width:112px; height:18px;">
</td>
이게 소스거든요.. 제발좀 어떻게 해야 하나씩 사라지는지좀 가르쳐 주세요..
---------------------------------------------------------------------
로그인해서 회원정보 수정하기 가서 수정하고 나면 다시 메인페이지로 가게 하고 싶은데
어떤 파일 어떤부분을 어떻게 수정해야 하는지도좀 가르쳐 주세요..
오류 주소 :
slr 회원로그인할때 보면 클릭하면 아이디랑 패스워드 입력하는 창 글씨가 사라지잖아요.
그거 어떻게 해야 돼요.?
<td width="112" height="18">
<input class="ed" name="mb_id" type="text" size="16" maxlength="20" required itemname="아이디" value='ID' onMouseClick='chkReset(this.form);' onFocus='chkReset(this.form);' style="font-weight:normal; font-size:8pt; color:#8893B4; font-family:Tahoma,돋움; letter-spacing:0pt; padding:0px 0px 0px 5px; border-width:1; border-color:rgb(204,204,204); border-style:solid; width:112px; height:18px;">
</td>
<td width="6" rowspan="2"></td>
<td width="52" height="18" align="left">
<input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"><span class="style7">ID저장</span></td>
</tr>
<tr>
<td width="112" id="pw1" height="18">
<input class="ed" size="16" maxlength="20" required itemname="패스워드" value='PassWord' onMouseClick='chkReset(this.form);' onfocus='chkReset(this.form);' style="font-weight:normal; font-size:8pt; color:#8893B4; font-family:Tahoma,돋움; letter-spacing:0pt; padding:0px 0px 0px 5px; border-width:1; border-color:rgb(204,204,204); border-style:solid; width:112px; height:18px;">
<td width="104" id="pw2" height="18" style="display:none; padding:0px 0px 0px 0px;">
<input class="ed" name="mb_password" type="password" size="16" maxlength="20" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);' style="font-weight:normal; font-size:8pt; color:#8893B4; font-family:Tahoma,돋움; letter-spacing:0pt; padding:0px 0px 0px 5px; border-width:1; border-color:rgb(204,204,204); border-style:solid; width:112px; height:18px;">
</td>
이게 소스거든요.. 제발좀 어떻게 해야 하나씩 사라지는지좀 가르쳐 주세요..
---------------------------------------------------------------------
로그인해서 회원정보 수정하기 가서 수정하고 나면 다시 메인페이지로 가게 하고 싶은데
어떤 파일 어떤부분을 어떻게 수정해야 하는지도좀 가르쳐 주세요..
댓글 전체
참고하세요.
아래 스크립트가 있는지 확인해 보세요.
<script type="text/javascript" language=JavaScript>
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
<!-- 로그인 전 외부로그인 시작 -->
<table width="220" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$url?>">
<tr>
<td width="220" height="42" colspan="6" valign="top"><img src="<?=$outlogin_skin_path?>/img/login_top.gif" width="220" height="42"></td>
</tr>
중략
<tr>
<td width="210" colspan="4">
<table width="210" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="141">
<table width="141" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_id.gif" width="35" height="23"></td>
<td width="106" height="23" colspan="2" align="center"><input name="mb_id" type="text" class=ed size="12" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);'></td>
</tr>
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_pw.gif" width="35" height="23"></td>
<td id=pw1 width="106" height="23" colspan="2" align="center"><input type="text" class=ed size="12" maxlength="20" required itemname="패스워드" value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'></td>
<td id=pw2 style='display:none;' width="106" height="23" colspan="2" align="center"><input name="mb_password" type="password" class=ed size="12" maxlength="20" itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'></td>
</tr>
</table>
</td>
<td width="69" height="46" rowspan="2" align="center"><input type="image" src="<?=$outlogin_skin_path?>/img/login_button.gif" width="52" height="46"></td>
</tr>
</table></td>
</tr>
중략
아래 스크립트가 있는지 확인해 보세요.
<script type="text/javascript" language=JavaScript>
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
<!-- 로그인 전 외부로그인 시작 -->
<table width="220" border="0" cellpadding="0" cellspacing="0">
<form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
<input type="hidden" name="url" value="<?=$url?>">
<tr>
<td width="220" height="42" colspan="6" valign="top"><img src="<?=$outlogin_skin_path?>/img/login_top.gif" width="220" height="42"></td>
</tr>
중략
<tr>
<td width="210" colspan="4">
<table width="210" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="141">
<table width="141" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_id.gif" width="35" height="23"></td>
<td width="106" height="23" colspan="2" align="center"><input name="mb_id" type="text" class=ed size="12" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);'></td>
</tr>
<tr>
<td width="35" height="23"><img src="<?=$outlogin_skin_path?>/img/login_pw.gif" width="35" height="23"></td>
<td id=pw1 width="106" height="23" colspan="2" align="center"><input type="text" class=ed size="12" maxlength="20" required itemname="패스워드" value='패스워드' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'></td>
<td id=pw2 style='display:none;' width="106" height="23" colspan="2" align="center"><input name="mb_password" type="password" class=ed size="12" maxlength="20" itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'></td>
</tr>
</table>
</td>
<td width="69" height="46" rowspan="2" align="center"><input type="image" src="<?=$outlogin_skin_path?>/img/login_button.gif" width="52" height="46"></td>
</tr>
</table></td>
</tr>
중략
<script type="text/javascript" language=JavaScript>
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == 'ID' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
스크립트 있구요. 답변해주셔서 감사합니다. 답변 내용은 마우스 오버시 기본값이 사라지는 소스인것 같네요. 기본값이 클릭시 사라지게 할려고 마우스오버대신 마우스클릭을 썼거든요.. 근데 인풋박스 하나만 클릭해도 두개의 값이 다 사라져버려서요..ㅠㅠ
클릭하면 사라지게 하고 싶거든요
var bReset = true;
function chkReset(f)
{
if (bReset) { if ( f.mb_id.value == 'ID' ) f.mb_id.value = ''; bReset = false; }
document.getElementById("pw1").style.display = "none";
document.getElementById("pw2").style.display = "";
}
</script>
스크립트 있구요. 답변해주셔서 감사합니다. 답변 내용은 마우스 오버시 기본값이 사라지는 소스인것 같네요. 기본값이 클릭시 사라지게 할려고 마우스오버대신 마우스클릭을 썼거든요.. 근데 인풋박스 하나만 클릭해도 두개의 값이 다 사라져버려서요..ㅠㅠ
클릭하면 사라지게 하고 싶거든요
정보수정후 페이지를 메인으로 갈려고하면 skin/bagic/member_comfirm_skin.php 파일의 저부분을 바꾸라고 하는데 형식을 어떻게 써줘야 하나요.?
예를 들어 index.php 파일로 가게 하고 싶으면 어떻게 해야 하는지요.? 인덱스 파일은 최상위에 있구요
<script language='Javascript'>
document.onload = document.fmemberconfirm.mb_password.focus();
function fmemberconfirm_submit(f)
{
document.getElementById("btn_submit").disabled = true;
f.action = "<?=$url?>";-----이부분을 수정해주시면 됩니다.
f.submit();
}
</script>
예를 들어 index.php 파일로 가게 하고 싶으면 어떻게 해야 하는지요.? 인덱스 파일은 최상위에 있구요
<script language='Javascript'>
document.onload = document.fmemberconfirm.mb_password.focus();
function fmemberconfirm_submit(f)
{
document.getElementById("btn_submit").disabled = true;
f.action = "<?=$url?>";-----이부분을 수정해주시면 됩니다.
f.submit();
}
</script>