테스트 사이트 - 개발 중인 베타 버전입니다

로그인 후 레이어 팝업 닫기..ㅠㅠ 도와주세요~

· 13년 전 · 2822 · 3
[index.php] ---- 로그인 화면이 팝업창으로 뜸.

<link rel="stylesheet" href="http://www.awwwards.com/inc/css/global.css" type="text/css" />
<link media="screen" rel="stylesheet" href="http://www.awwwards.com/inc/css/colorbox.css" />
<script type="text/javascript" src="http://www.awwwards.com/inc/js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="http://www.awwwards.com/inc/js/jquery.colorbox.js"></script>

<a rel="nofollow" href="/bbs/login2.php" id="logeMe" class="boxpopup">Login</a>

<script>
jQuery(document).ready(function(){
$(".boxpopup").colorbox({iframe:true, innerWidth:753, innerHeight:460, opacity:0.5});
});
</script>



[login2.php] ----------- 그누보드 일반적인 로그인 소스
<div id=LayLoginForm style="display: none; z-index: 2; left: 0px; width: 536px; position: absolute; top: 0px; height:226px">

<table style="border: #389af1 3px solid;" cellspacing=0 cellpadding=2 width=528 align=center border=0 background="<?=$outlogin_skin_path?>/img/login_bg.gif">
<form method=post name=lay_login_form onsubmit="return flogin_submit(this);" autocomplete="off" onKeypress="flogin_keypress(this);">
<input type="hidden" name="url" value='<?=$url?>'>
<tr>

<td>
<table cellspacing=0 cellpadding=0 width="100%" border=0>
<tr><td colspan=3 height=4></td></tr>
<tr>
<td colspan='2'></td>
<td align='right' style="padding-top:5px;" valign=top><a onclick="cover_off('LayLoginForm')" href="javascript:;"><img src="<?=$outlogin_skin_path?>/img/close.gif" width="42" height="11" border=0></a></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>

<script language='Javascript'>
function flogin_keypress(f) {
if (event.keyCode==13 && document.getElementById("LayLoginForm").style.display != "none") {
if (flogin_submit(f)) f.submit();
}
}
</script>
</div>

문제는 로그인을 한 후 레이어 창이 닫아지면서 로그인이 되어야하는데..
로그인 한 후 레이어창에서 그냥 화면이 떠버리네요 ㅠㅠ
창이 꺼지면서 메인화면이 새로고침 되어야하는데..
좀 도와주세요 ㅠㅠㅠㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 3개

<form target=_parent ~~~~> 해보세욤...
13년 전
답변 감사합니다. 근데 어떤 소스를 고치면 되나요?? 죄송해요 초보라서 ㅠㅠ
[login2.php]
<form method=post name=lay_login_form onsubmit="return flogin_submit(this);" autocomplete="off" onKeypress="flogin_keypress(this);">
==> 얘를요...
<form method=post name=lay_login_form onsubmit="return flogin_submit(this);" autocomplete="off" onKeypress="flogin_keypress(this);" target=_parent >
===> 이렇게요.

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440