멀티팝업 재질문

멀티팝업 재질문

QA

멀티팝업 재질문

본문

https://sir.kr/g5_plugin/3351

 

해당멀티팝업 적용할려고하니 root 에 그대로 넣었는데 변화가 없네요

기존 팝업창뜨는것처럼뜨는데 뭐때문인가요? ㅠ 혹시 버전문제로 적용안될수도있나요?

영카트사용중입니다.

 

추가 + 주석처리부분 확인하라는데 

 

<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if (!defined('_SHOP_')) {
    $pop_division = 'comm';
} else {
    $pop_division = 'shop';
}

$sql = " select * from {$g5['new_win_table']}
          where '".G5_TIME_YMDHIS."' between nw_begin_time and nw_end_time
            and nw_device IN ( 'both', 'pc' ) and nw_division IN ( 'both', '".$pop_division."' )
          order by nw_id asc ";
$result = sql_query($sql, false);
$sql2 = " select * from {$g5['new_win_table']}
          where '".G5_TIME_YMDHIS."' between nw_begin_time and nw_end_time
            and nw_device IN ( 'both', 'pc' ) and nw_division IN ( 'both', '".$pop_division."' )
          order by nw_id asc ";
$result2 = sql_query($sql2, false);
?>
<script type="text/javascript" src="<?=G5_JS_URL?>/popevent.js"></script>
<style>
    *{margin:0; padding:0;font:12px Archivo Black, Arial,霃嬱泙; }
    
    #pop_win{width: 300px}
    #pop_win a{text-decoration: none}
    #popchange { overflow:hidden; float:left; position:relative; left:0px; top:0px; width:298px; height: 380px; margin:0; padding:0px; border:1px solid #ddd; border-bottom:0px solid #ddd; background:#fff; text-align:center; visibility:visible; z-index:99999999; }
    #popchange ul { list-style:none; }
    #divMenu { float:left; position:relative; left:0px; top:0px; margin:0; background:#fff; text-align:center; visibility:visible; z-index:99999999; }
    .pagination:after{clear: both;display: block;content: ""}
    .pagination { float:left; list-style:none;   margin:0px 0px 0 0px; background:#fff; }
    .pagination li {position: relative;float:left; width: 100px; height: 80px; padding:0px; color:#222; border: 1px solid #ddd; background:#eee; text-align:center; cursor:pointer; opacity:1.0;  transition: all .5s ease;
    -webkit-transition: all .5s ease;}
    .pagination li:hover { color:#000; border:1px solid #D49696; background:; opacity:1.0; }
    li.current {  background:#fff; opacity:1.0; }
    li.current p{color: #000!important}
    .pagination li p {top: 30%; position: absolute; color: #999; text-align: center; display: block; width: 100%;}
    li#content { width:298px; height:222px;  margin:0px 0px 8px 8px; background:#fff; }
    #content h1 { font:12px Archivo Black, Arial,霃嬱泙; margin-bottom:15px; color:#000; }

    #footerfix { float:left; position:relative; left:0px; top:0px; z-index:99999999; }
    .hd_pops_footer { padding: 0; background: #000; color: #fff; text-align: left; position: relative; /* height: 36px; */ float: left; width: 300px; }
    #pop_win { width: 300px; position: fixed; z-index: 9999; left: 20%; top: 10%; }
</style>
<!-- 팝업레이어 시작 { -->

<div id="pop_win">
    <div id="popchange" style="z-index:1005;">
      <ul id="changes">
      <?php
        for ($i=0; $nw=sql_fetch_array($result); $i++)
        {
            // 이미 체크 되었다면 Continue
            if ($_COOKIE["hd_pops_{$nw['nw_id']}"])
                continue;
            echo"<li>";
        ?>
        <?php echo conv_content($nw['nw_content'], 1); ?>
        <?
        echo"</li>";
        }?>
      </ul>
    </div>
    <div id="divMenu">
      <ul id="pagination" class="pagination">
      <?php
        for ($i=0; $nw2=sql_fetch_array($result2); $i++)
        {
            // 이미 체크 되었다면 Continue
            if ($_COOKIE["hd_pops_{$nw['nw_id']}"])
                continue;
            
        ?>
        <li onmouseover="popchange.pos(<?=$i?>)"><p><?php echo $nw2['nw_subject']; ?></p></li>
        <?}?>


      </ul>
    </div>
    <div class="hd_pops_footer">
            <button class="hd_pops_reject pop_win<?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 pop_win<?php echo $nw['nw_id']; ?>">닫기 <i class="fa fa-times" aria-hidden="true"></i></button>
        </div>
        
    
</div>


<script type="text/javascript"> 
    var popchange=new TINY.fader.fade('popchange',{
        id:'changes',
        auto:1,
        resume:true,
        navid:'pagination',
        activeclass:'current',
        visible:true,
        position:0
    });
    </script>
<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

/bbs/newwin.inc.php

파일 열어보시면

 

<!-- 팝업레이어 시작 { -->

<!-- } 팝업레이어 끝 -->

 

부분에 저 코드를 넣어보세요

 

답변을 작성하시기 전에 로그인 해주세요.
전체 16,737
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT