팝업레이어 닫기가 안됩니다 도와주세요 T.T
본문
닫기 버튼이 눌리지 않아요 도와주세요..
코드에 문제가 있는걸까요?정말 모르겠어요.. 도와주세요..
<!-- 팝업레이어 시작 { -->
<div id="hd_pop"> <h2>팝업레이어 알림</h2>
<?phpfor ($i=0; $nw=sql_fetch_array($result); $i++){ // 이미 체크 되었다면 Continue if ($_COOKIE["hd_pops_{$nw['nw_id']}"]) continue;?>
<div id="hd_pops_<?php echo $nw['nw_id'] ?>" class="hd_pops" style="top:<?php echo $nw['nw_top']?>px;left:<?php echo $nw['nw_left']?>px"> <div class="hd_pops_con" style="width:<?php echo $nw['nw_width'] ?>px;height:<?php echo $nw['nw_height'] ?>px"> <?php echo conv_content($nw['nw_content'], 1); ?> </div> <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><?php }if ($i == 0) echo '<span class="sound_only">팝업레이어 알림이 없습니다.</span>';?></div>
<script>$(function() { $(".hd_pops_reject").click(function() { var id = $(this).attr('class').split(' '); var ck_name = id[1]; var exp_time = parseInt(id[2]); $("#"+id[1]).css("display", "none"); set_cookie(ck_name, 1, exp_time, g5_cookie_domain); }); $('.hd_pops_close').click(function() { var idb = $(this).attr('class').split(' '); $('#'+idb[1]).css('display','none'); }); $("#hd").css("z-index", 1000);});</script><!-- } 팝업레이어 끝 -->
답변 1
특별히 수정한 부분이 없는 그누보드 원본소스라면
팝업레이어 상단부분 head.sub나 다른부분에서 스크립트 오류가 이미 발생했을 가능성이 있습니다.
F12 사용해서 스크립트 오류를 찾는것이 우선일듯싶습니다.
답변을 작성하시기 전에 로그인 해주세요.