그누보드는 아니지만..
함 봐주세요
<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>
왜 로그인안했을때 경고창은 뜨는데 이동을 안하져?
뭐가 잘못된건가영?
댓글 3개
13년 전
window.location <---
document.location.href =
document.location.href =
아지야학교가자
13년 전
그래도 안되네여 ;; 뭐가 문제인건지 답답하네영 돌삐님 감사합니다
Darby
13년 전
window.parent.location.href=
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4114 | |
| 29 |
아우겐나이스
|
21년 전 | 4490 | |
| 28 |
아우겐나이스
|
21년 전 | 3513 | |
| 27 | 21년 전 | 5895 | ||
| 26 | 21년 전 | 3171 | ||
| 25 | 21년 전 | 6148 | ||
| 24 | 18년 전 | 3704 | ||
| 23 | 21년 전 | 3699 | ||
| 22 | 21년 전 | 4289 | ||
| 21 | 21년 전 | 3877 | ||
| 20 | 21년 전 | 4287 | ||
| 19 | 21년 전 | 6733 | ||
| 18 | 21년 전 | 4781 | ||
| 17 | 21년 전 | 7027 | ||
| 16 | 21년 전 | 4223 | ||
| 15 | 21년 전 | 2683 | ||
| 14 | 21년 전 | 5018 | ||
| 13 | 21년 전 | 3443 | ||
| 12 |
Recluse
|
21년 전 | 3921 | |
| 11 |
아우겐나이스
|
21년 전 | 3606 | |
| 10 |
Recluse
|
21년 전 | 3446 | |
| 9 | 21년 전 | 4062 | ||
| 8 | 21년 전 | 5232 | ||
| 7 | 21년 전 | 4811 | ||
| 6 | 21년 전 | 5759 | ||
| 5 | 21년 전 | 4166 | ||
| 4 | 21년 전 | 4902 | ||
| 3 | 21년 전 | 4790 | ||
| 2 | 21년 전 | 3294 | ||
| 1 | 22년 전 | 4385 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기