답변 2개 / 댓글 1개
/bbs/newwin.inc.php [PC]
/mobile/newwin.inc.php [Mobile]
간단하게는 아래처럼 체크박스 추가하면 됩니다. 체크박스 선택과 동시에 닫힘.
<div class="hd_pops_footer">
<button class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_hours']; ?>"><strong><?php echo $nw['nw_disable_hours']; ?></strong>시간 동안 다시 열람하지 않습니다.</button>
<button class="hd_pops_close hd_pops_<?php echo $nw['nw_id']; ?>">닫기</button>
</div>
↓
<div class="hd_pops_footer">
<input type="checkbox" class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_hours']; ?>"><button class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_hours']; ?>"><strong><?php echo $nw['nw_disable_hours']; ?></strong>시간 동안 다시 열람하지 않습니다.</button>
<button class="hd_pops_close hd_pops_<?php echo $nw['nw_id']; ?>">닫기</button>
</div>
체크박스 선택 > 닫기 눌렀을 때 동작시키려면 코드를 좀 더 손봐야 합니다.
답변을 작성하려면 로그인이 필요합니다.
