팝업창 띄울때 오늘하루 안뜨기 소스랑 적용 방법좀 가르켜 주세요 ㅠㅠ
잘 안되네요
댓글 2개
<script>
(function() {
var pop = [
['test2.html','name1','width=200,height=200'],
['test2.html','name2','width=200,height=200']
]
function _disablePop(win) {
var expires = new Date();
var name = win.name;
expires.setDate(expires.getDate()+1);
expires = expires.toGMTString();
cookies = '_aequum_'+name+'=ung ; path=/ ;expires=' + expires + ';';
document.cookie = cookies;
win.close();
}
function _checkPop() {
for (var i=0 ; i < pop.length; i++) {
var name = '_aequum_' + pop[i][1];
if (document.cookie.indexOf(name) > -1 ) continue
else window.open(pop[i][0],pop[i][1],pop[i][2])
}
}
window._disablePop = _disablePop;
_checkPop();
})();
</script>
작성해봤어요. 위와 같은 소스를 본래 창에 넣고요
팝업창 닫기 버튼은 해당 팝업창에서
<span onclick="opener._disablePop(self);">
하루창닫기
</span>
이런식으로 넣으면 됩니다.
좀 급조한 맛이? 다시 화면에 뛰우고 싶으면 브라우저 쿠키를 지우면 됩니다.
(function() {
var pop = [
['test2.html','name1','width=200,height=200'],
['test2.html','name2','width=200,height=200']
]
function _disablePop(win) {
var expires = new Date();
var name = win.name;
expires.setDate(expires.getDate()+1);
expires = expires.toGMTString();
cookies = '_aequum_'+name+'=ung ; path=/ ;expires=' + expires + ';';
document.cookie = cookies;
win.close();
}
function _checkPop() {
for (var i=0 ; i < pop.length; i++) {
var name = '_aequum_' + pop[i][1];
if (document.cookie.indexOf(name) > -1 ) continue
else window.open(pop[i][0],pop[i][1],pop[i][2])
}
}
window._disablePop = _disablePop;
_checkPop();
})();
</script>
작성해봤어요. 위와 같은 소스를 본래 창에 넣고요
팝업창 닫기 버튼은 해당 팝업창에서
<span onclick="opener._disablePop(self);">
하루창닫기
</span>
이런식으로 넣으면 됩니다.
좀 급조한 맛이? 다시 화면에 뛰우고 싶으면 브라우저 쿠키를 지우면 됩니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 1643 | |
| 7691 | |
| 1642 | |
| 1634 | |
| 1632 | |
| 1626 | |
| 1622 | |
| 1614 | |
| 1609 | |
| 1607 | |
| 7686 | |
| 5820 | |
| 5812 | |
| 5807 | |
| 1603 | |
| 1602 | |
| 1594 | |
| 1592 | |
| 5806 | |
| 1590 | |
| 7679 | |
| 1587 | |
| 1578 | |
| 1570 | |
| 7669 | |
| 1569 | |
| 7656 | |
| 1567 | |
| 1560 | |
| 1540 | |
| 1539 | |
| 7647 | |
| 1536 | |
| 1535 | |
| 1532 | |
| 1524 | |
| 1520 | |
| 1519 | |
| 1466 | |
| 5789 | |
| 1457 | |
| 5786 | |
| 1448 | |
| 5784 | |
| 1446 | |
| 1441 | |
| 5781 | |
| 5766 | |
| 6837 | |
| 6836 | |
| 5758 | |
| 5748 | |
| 7642 | |
| 7638 | |
| 1440 | |
| 6831 | |
| 1438 | |
| 1435 | |
| 5712 | |
| 1425 | |
| 1422 | |
| 1420 | |
| 1413 | |
| 1409 | |
| 7623 | |
| 7616 | |
| 1407 | |
| 1398 | |
| 1393 | |
| 1392 | |
| 1384 | |
| 6830 | |
| 1383 | |
| 1377 | |
| 1374 | |
| 1373 | |
| 1365 | |
| 1359 | |
| 1357 | |
| 6822 | |
| 1346 | |
| 1340 | |
| 1336 | |
| 1329 | |
| 1324 | |
| 1316 | |
| 1309 | |
| 1300 | |
| 1292 | |
| 1270 | |
| 1255 | |
| 1251 | |
| 1249 | |
| 1244 | |
| 7610 | |
| 1212 | |
| 1210 | |
| 1207 | |
| 7532 | |
| 1200 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기