/home/mjc1/public_html/j3demo/skin/banner/ev_banner01.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
<?php
    
Global $j3_data_url$j3_img_url$j3_shop_url;
    
$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

?>
<ul class='banner_ul_<?php echo $sk_idx;?>'>
<?php 
    $pagers 
"";
    foreach(
$ev_array as $key=>$info){ 
        
$ev_img_url $j3_data_url."/ico/ev_banner_".$info['idx'];
        
$ev_url $j3_shop_url."/event.php?idx=".$info['idx'];

        
$pagers .= "<div data-slide-index='{$key}' class='hd_banner_circle'><a>{$key}</a></div>";
?>
    <li><a href="<?php echo $ev_url;?>"><img src="<?php echo $ev_img_url;?>" alt="<?php echo $info['ev_subject'];?>"></a></li>
<?php 
    

?>
</ul>
<div class="hd_banner_pager" id='bx-pager-<?php echo $sk_idx?>'>
    <?php echo $pagers?>
    <!--<div class="hd_banner_circle"><a class="active">1</a></div>
    <div class="hd_banner_circle"><a>2</a></div>-->
</div>
<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({
                auto: true,
                captions: false,
                controls:false,
                pagerCustom: '#bx-pager-<?php echo $sk_idx?>'
            });    
        },400);
    } else {
        myslider<?php echo $sk_idx;?> = $('.banner_ul_<?php echo $sk_idx;?>').bxSlider({
            auto: true,
            captions: false,
            controls:false,
            pagerCustom: '#bx-pager-<?php echo $sk_idx?>'
        });    
    }    

    $("#bx-pager-<?php echo $sk_idx?> .hd_banner_circle a").click(function(){
        myslider<?php echo $sk_idx;?>.goToNextSlide();
    });
});
</script>