로그인 후 레이어 팝업 닫기..ㅠㅠ 도와주세요~ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

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

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

본문

[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>

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

댓글 전체

[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 >
===> 이렇게요.
© SIRSOFT
현재 페이지 제일 처음으로