팝업창 소스 오류 관련해서 질문 드립니다.
본문
홈페이지 팝업창 소스입니다.
<script LANGUAGE="JavaScript">
</script>
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function getCookie(name) {
var nameOfCookie = name + "=";
var x = 0;
while (x <= document.cookie.length) {
var y = (x + nameOfCookie.length);
if (document.cookie.substring(x, y) == nameOfCookie) {
if (( endOfCookie = document.cookie.indexOf(";", y)) == -1)
endOfCookie = document.cookie.length;
return unescape(document.cookie.substring(y, endOfCookie));
}
x = document.cookie.indexOf(" ", x) + 1;
if (x == 0)
break;
}
return "";
}
if (getCookie("popup") != "done") {
noticeWindow = window.open('popup.php', 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=720');
noticeWindow.opener = self;
}
</script>
이부분에서 디버그 하면 오류창이 뜹니다.
밑의 오류 역시 마찬가지입니다.
이런 오류창이 뜹니다.
소스의 어느 부분을 고쳐야 할까요?
!-->
답변 1
noticeWindow = window.open(
'pop...
var noticeWindow = window.open(
'pop
...
아래거는 safeA... 이 펑션을 못찾아서 그런거에요.
이 펑션이 있는 것과 연결이 되는지 확인해보세요.
답변을 작성하시기 전에 로그인 해주세요.