팝업창 오늘하루동안 보지않기 도움 요청드립니다.
본문
index.php 에 적용시켜 실행하면
메인페이지 왼쪽상단에 뜨는 팝업창입니다.
이 소스에다 오늘하루동안 보지않기 를 간단하게 적용시키고 싶은데
생각보다 쉽지가 않네요. 고수님들의 도움 부탁드립니다.
<script type="text/javascript">
var newDoc = window.open('','popup','width=400,height=550,scrollbars=no');
newDoc.document.open();
var txt = "<html><head><title>강원</title>";
txt += "<style type='text/css'>body{ text-align: center; margin: 0; }</style></head>";
txt += "<body><img src='http://kyy.or.kr/data/editor/1408/2040986972_1409277316.2307.PNG' onclick=\"opener.location.href='http://kyy.or.kr/bbs/board.php?bo_table=csinfo11&wr_id=45'; self.close()\" style='cursor: pointer'></body></html>";
newDoc.document.write(txt);
newDoc.document.close;
</script>
답변을 작성하시기 전에 로그인 해주세요.