묻고답하기
로그인위젯스킨팝업div 문제...
2013.03.11 15:24
로그인 실패할때 레이아웃을 팝업할려구 하는데 안되네요,ㅠㅠ 이것은 아래 소스입니다 ..
login.js
/*로그인 실패팝업*/
var baseText = null;
function showPopup(w,h){var popUp = document.getElementById("message");
popUp.style.top = "200px";
popUp.style.left = "200px";
popUp.style.width = w + "px";
popUp.style.height = h + "px";if (baseText == null)baseText = popUp.innerHTML;
popUp.innerHTML = baseText + "<div id=\"statusbar\"><button onclick=\"hidePopup();\">Close window<button></div>";
var sbar = document.getElementById("statusbar");
sbar.style.marginTop = (parseInt(h)-40) + "px";
popUp.style.visibility = "visible";}
/*팝업숨김*/
function hidePopup(){ var popUp = document.getElementById("message"); popUp.style.visibility = "hidden"; }
css파일(input등양식간략)
#message{
position: absolute;
visibility: hidden;
overflow: hidden;
border:1px solid #CCC;
background-color:#F9F9F9;
border:1px solid #333;
padding:5px;}
로그인 폼:
<!--%import("./css/base.css")-->
<!--%import("./filter/login.xml")-->
<!--%import("./js/login.js")-->
<DIV id=loginbarx class="home-sign fn-left">
<form id="fo_login_widget" action="./" method="post" ruleset="@login">
<input type="hidden" name="act" value="member" />
<input type="hidden" name="act" value="procMemberLogin" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<UL>
<LI><LABEL class=ui-label for=username>USER ID:</LABEL>
<DIV class=ui-form-field><INPUT id="uid"class=ui-input type=text
name="user_id" ></DIV></LI>
<LI><LABEL class=ui-label for=password>비밀번호:</LABEL>
<DIV class=ui-form-field><INPUT id="upw" class=ui-input maxLength=20
type=password name="password" ></DIV></LI>
<LI><INPUT id=loginbt class=ui-button1 value=로그인 type=submit></LI>
<LI><a href="{getUrl('act','dispMemberSignUpForm')}">무료가입</A>|<a href="{getUrl('act','dispMemberFindAccount')}">패스월드찾기</A></LI>
</UL>
</FORM>
<div id="message" cond="$XE_VALIDATOR_MESSAGE"|"showPopup(300,200);">
{$XE_VALIDATOR_MESSAGE}
</div>
</DIV>
위에 로그인 폼 이렇게 <div id="message" cond="$XE_VALIDATOR_MESSAGE"|"showPopup(300,200);"> 팝업이 생기지않네요
어떻게 하면 좋을까요 ..제로보드의 스킨제작처음이라서 좀 도와주세요 .
감사합니다 ..