[중요질문] 비회원 클릭시 로그인 창을 레이어로 대체하고 싶습니다... 정보
[중요질문] 비회원 클릭시 로그인 창을 레이어로 대체하고 싶습니다...본문
비회원이 최신글이나, 목록을 클릭시..
현재는 [글을 읽을 권한이 없습니다...] 이렇게 알럿창이 나오고 로그인창으로 넘어가잖아요..
저는 [글을 읽을 권한이 없습니다...] 알럿창을 안띄우고 바로..
아래 레이어를 노출시키고 싶습니다..
어디어디 부분을 수정해야 될까요?
<div id=LayLoginForm style="display: none; z-index: 2; left: 0px; width: 364px; position: absolute; top: 0px; height: 370px">
<table style="border: #e65101 3px solid;" cellspacing=0 cellpadding=2 width=364 align=center border=0>
<form method=post name=lay_login_form onsubmit="return flogin_submit(this);" autocomplete="off">
<input type="hidden" name="url" value='<?=$url?>'>
<tr>
<td bgcolor="#ededed">
<table cellspacing=0 cellpadding=0 width="100%" bgcolor=#ffffff border=0>
<tr>
<td align='left' style="padding:15px 5px 5px 25px;"> <?=$config['cf_title']?> 회원 로그인</td>
<td align='right' style="padding:5px;" valign=top> <a onclick="cover_off('LayLoginForm')" href="javascript:;"><img src="<?=$outlogin_skin_path?>/img/close.gif" width="11" height="11" border=0 align="absmiddle"></a></td>
</tr>
<tr>
<td colspan='2'>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="400" height="130" align="center" bgcolor="#ffffff"><iframe src="about:blank" mce_src="about:blank" scrolling="no" frameborder="0" style="position:absolute;width:364px;height:130px;top:3px;left:3px;z-index:-1;border:none;display:block"></iframe>
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="250">
<table width="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td width="90" height="26"><b>아이디</b></td>
<td width="150"><INPUT class="ed" maxLength=20 size=15 name=mb_id itemname="아이디" required minlength="2"></td>
</tr>
<tr>
<td><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td height="26"><b>패스워드</b></td>
<td><INPUT type=password class="ed" maxLength=20 size=15 name=mb_password itemname="패스워드" required></td>
</tr>
</table>
</td>
<td width="100" valign="top"><INPUT type="submit" width="65" height="52" value="로그인" style="background-color:#efefef;width:65px;height:52px;border:1px solid #9A9A9A; border-right:1px solid #D8D8D8; border-bottom:1px solid #D8D8D8;"></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td height="26" colspan="2"><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"> 아직 회원이 아니십니까? <a href="<?=$g4[bbs_path]?>/register.php"><img width="72" height="20" src="<?=$outlogin_skin_path?>/img/btn_register.gif" border=0 align="absmiddle"></a></td>
</tr>
<tr>
<td height="26" colspan="2"><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"> 아이디/패스워드를 잊으셨습니까? <a href="javascript:;" onclick="win_password_forget('<?=$g4[bbs_path]?>/password_forget.php');"><img src="<?=$outlogin_skin_path?>/img/btn_password_forget.gif" width="108" height="20" border=0 align="absmiddle"></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<script language='Javascript'>
function flogin_submit(f)
{
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
else
echo "f.action = '$g4[bbs_path]/login_check.php';";
?>
return true;
}
</script>
</div>
현재는 [글을 읽을 권한이 없습니다...] 이렇게 알럿창이 나오고 로그인창으로 넘어가잖아요..
저는 [글을 읽을 권한이 없습니다...] 알럿창을 안띄우고 바로..
아래 레이어를 노출시키고 싶습니다..
어디어디 부분을 수정해야 될까요?
<div id=LayLoginForm style="display: none; z-index: 2; left: 0px; width: 364px; position: absolute; top: 0px; height: 370px">
<table style="border: #e65101 3px solid;" cellspacing=0 cellpadding=2 width=364 align=center border=0>
<form method=post name=lay_login_form onsubmit="return flogin_submit(this);" autocomplete="off">
<input type="hidden" name="url" value='<?=$url?>'>
<tr>
<td bgcolor="#ededed">
<table cellspacing=0 cellpadding=0 width="100%" bgcolor=#ffffff border=0>
<tr>
<td align='left' style="padding:15px 5px 5px 25px;"> <?=$config['cf_title']?> 회원 로그인</td>
<td align='right' style="padding:5px;" valign=top> <a onclick="cover_off('LayLoginForm')" href="javascript:;"><img src="<?=$outlogin_skin_path?>/img/close.gif" width="11" height="11" border=0 align="absmiddle"></a></td>
</tr>
<tr>
<td colspan='2'>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="400" height="130" align="center" bgcolor="#ffffff"><iframe src="about:blank" mce_src="about:blank" scrolling="no" frameborder="0" style="position:absolute;width:364px;height:130px;top:3px;left:3px;z-index:-1;border:none;display:block"></iframe>
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="250">
<table width="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td width="90" height="26"><b>아이디</b></td>
<td width="150"><INPUT class="ed" maxLength=20 size=15 name=mb_id itemname="아이디" required minlength="2"></td>
</tr>
<tr>
<td><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td height="26"><b>패스워드</b></td>
<td><INPUT type=password class="ed" maxLength=20 size=15 name=mb_password itemname="패스워드" required></td>
</tr>
</table>
</td>
<td width="100" valign="top"><INPUT type="submit" width="65" height="52" value="로그인" style="background-color:#efefef;width:65px;height:52px;border:1px solid #9A9A9A; border-right:1px solid #D8D8D8; border-bottom:1px solid #D8D8D8;"></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td height="26" colspan="2"><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"> 아직 회원이 아니십니까? <a href="<?=$g4[bbs_path]?>/register.php"><img width="72" height="20" src="<?=$outlogin_skin_path?>/img/btn_register.gif" border=0 align="absmiddle"></a></td>
</tr>
<tr>
<td height="26" colspan="2"><img src="<?=$outlogin_skin_path?>/img/icon.gif" width="3" height="3"> 아이디/패스워드를 잊으셨습니까? <a href="javascript:;" onclick="win_password_forget('<?=$g4[bbs_path]?>/password_forget.php');"><img src="<?=$outlogin_skin_path?>/img/btn_password_forget.gif" width="108" height="20" border=0 align="absmiddle"></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<script language='Javascript'>
function flogin_submit(f)
{
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
else
echo "f.action = '$g4[bbs_path]/login_check.php';";
?>
return true;
}
</script>
</div>
댓글 전체
페이지 이동 하신 결과가 레이어창이 뜬 것처럼 만들면 조금 나을것 같고
페이지 이동전에 체크 하시려면 조금 많이 고쳐야합니다.
일일히 설명하려니까 너무 많네요 허허
페이지 이동전에 체크 하시려면 조금 많이 고쳐야합니다.
일일히 설명하려니까 너무 많네요 허허
가장 간단한 방법으로는 list의 스킨에서 비회원인 경우 onclick에 해당 div를 뛰우는 스크립트를 다 집어넣어주시면 될것 같네요