로그인페이지로 안가요 정보
개발자 로그인페이지로 안가요
본문
그누보드는 아니지만..
함 봐주세요
<SCRIPT LANGUAGE="JavaScript">
< !--
var conFlag = true;
< !--
var conFlag = true;
function entryEvent(){
var doc = document.surveyForm;
var doc = document.surveyForm;
if(!<?=$printJsCheckDate?>){
alert("이벤트 응모날짜가 아닙니다. 해당응모 날짜에 응모해 주시길 바랍니다.");
return;
}
if( "<?=$cookie_id?>" == "" ){
alert('로그인 후 이벤트에 응모해 주시길 바랍니다.');
window.location=='http://www.naver.com';
return;
}
alert("이벤트 응모날짜가 아닙니다. 해당응모 날짜에 응모해 주시길 바랍니다.");
return;
}
if( "<?=$cookie_id?>" == "" ){
alert('로그인 후 이벤트에 응모해 주시길 바랍니다.');
window.location=='http://www.naver.com';
return;
}
if(doc.contents.value == '' || conFlag == true){
alert('신청사유를 꼭 작성해주세요.');
document.surveyForm.contents.value="";
conFlag = false;
return;
}
alert('신청사유를 꼭 작성해주세요.');
document.surveyForm.contents.value="";
conFlag = false;
return;
}
doc.mode.value = "add";
doc.target = "hiddenIfm";
doc.action = "event_action.php";
doc.submit();
doc.target = "hiddenIfm";
doc.action = "event_action.php";
doc.submit();
}
function hiddenContents(){
if(conFlag == true){
document.surveyForm.contents.value="";
conFlag = false;
}
}
//-->
< /SCRIPT>
if(conFlag == true){
document.surveyForm.contents.value="";
conFlag = false;
}
}
//-->
< /SCRIPT>
<form name="surveyForm">
< input type="text" name="contents" class="itext3" title="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" value="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" onClick="javascript_:hiddenContents();"/><input type="image" src="../event/20120911_cookingclass/btn_request.gif" class="btn_ok" value="" title="응모하기"onClick="javascript_:entryEvent();" />
< input type="text" name="contents" class="itext3" title="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" value="▼신청인원/신청사유를 꼭 작성해주세요.(150자내외)" onClick="javascript_:hiddenContents();"/><input type="image" src="../event/20120911_cookingclass/btn_request.gif" class="btn_ok" value="" title="응모하기"onClick="javascript_:entryEvent();" />
</form>
왜 로그인안했을때 경고창은 뜨는데 이동을 안하져?
뭐가 잘못된건가영?
추천
0 비추천
0
0 비추천
0
댓글 3개

window.location <---
document.location.href =
document.location.href =

그래도 안되네여 ;; 뭐가 문제인건지 답답하네영 돌삐님 감사합니다
window.parent.location.href=