/home/mjc1/public_html/j3demo/skin/main/banner21.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
$cur_img_url 
$j3_img_url."/".$sk['sk_img_path'];
$bn_pos $sk['sk_bn_pos']; // 배너 위치
$main_slider "Y";

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<style>
    /* 메인 : 배너 */
    .sbn_banner {height:100%;}
    .sbn_direction{position: absolute;left: 50%;top: 0;width: 1200px;margin-left: -610px;text-align: left;z-index: 900;}
    .sbn_arrow_img {position: absolute;top: 0;width: 26px;height: 41px;overflow: hidden;text-indent: -9999px;display: block;z-index: 9900;background: url("./img/sbn_direction_arrow.png") no-repeat;}
    .sbn_direction_arrow{position: relative;top: 140px;}
    .bx-next {right: 0;}
    .bx-prev{background-position: 0 -41px;}

    .sbn_banner_txt {
        position: relative;
        width: 1200px;
        height: 42px;
        margin: 0 auto;
        z-index: 910;
        border: 1px solid #d9d9d9;
    }
    .sbn_banner_txt_item {
        position: relative;
        float: left;
        width: 199px;
        height: 42px;
        text-align: center;
        z-index: 915;
    }
    .sbn_banner_txt_item a {
        height: 42px;
        text-align: center;
        display: block;
    }
    .sbn_banner_txt ul li{border-right: 1px solid #d9d9d9;}
    .sbn_banner_txt ul li:last-child{border:none;}
    .sbn_banner_txt_item a span{    line-height: 40px;}
    .on{background:#000;}
    .on a span{color:#fff;}
    </style>
<?php }?>
    <section id="main_banner" class="class_skin_idx_<?php echo $sk_idx;?>">
            <!--메인배너-->
            <div class="sbn_banner"><!--배너 높이값-->
                <?php echo banner_display($bn_pos,"banner01.php",$sk_idx);?>
            </div>
            <!--메인배너 좌우버튼-->
            <!--<div class="sbn_direction">
                <div class="sbn_direction_arrow">    
                    <a class="sbn_arrow_img bx-prev">prev</a>
                    <a class="sbn_arrow_img bx-next">prev</a>
                </div>
            </div>-->
    
            <!--메인배너 타이틀-->
            <div class="sbn_banner_txt">
                <ul></ul>
            </div>

        </section>
<script>
$(function(){
    var str = navigator.userAgent.toLowerCase();  //접속한 브라우저의 코드네임 소문자로 저장
    if ( -1 != str.indexOf('msie') ) { // msie 라는 문자열이 있으면 
        setTimeout(function(){ // ie에서만 골뱅이 도는 경우가 있어서 딜레이 처리해줌
            myslider<?php echo $sk_idx;?> = $('.banner_ul_<?php echo $sk_idx;?>').bxSlider({
                responsive: true,
                adaptiveHeight:false,
                pager: false,
                auto: true
            });    
        },400);
    } else {
        myslider<?php echo $sk_idx;?> = $('.banner_ul_<?php echo $sk_idx;?>').bxSlider({
            responsive: true,
            adaptiveHeight:false,
            pager: false,
            auto: true,
            onSlideAfter : function($e, oldidx, newidx){
                $(".sbn_banner_txt ul li").removeClass("on");
                $(".sbn_banner_txt ul li").eq(newidx).addClass("on");
            }
        });    
    }    

    $(".sbn_banner_txt ul").html($(".under_tab_class").html());

    $(".sbn_banner_txt ul li").click(function($e){
        myslider<?php echo $sk_idx;?>.goToSlide($(this).index());
        $(".sbn_banner_txt ul li").removeClass("on");
    });

});
</script>
<?php
$main_slider 
"";
?>