/home/mjc1/public_html/ryunen/skin/header/hd_float05.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
103
104
105
106
<?php
Global $config$configshop;
$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

if(
strpos($_SERVER['SCRIPT_NAME'],'index.php')>0){
    
$index_main "Y";
}
$stv $_SESSION['stv'];
$stv_img $_SESSION['stv_img'];
$stv_url $_SESSION['stv_url'];

//_pr($_SESSION);

if($configshop['header_fixed']>=2){
    
$configshop['header_fixed'];
}

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<style>
#stv_list{ position: absolute;left: 10px;width: 75px;border-radius: 4px;border: 1px solid #dadada;background: #FFF;}
#stv_nb {margin: 0;padding: 0;list-style: none;border-top: 1px solid #dadada;}
#stv_list h2 {margin: 0px;padding: 10px 0;border-bottom:1px solid #e9e9e9;color: #278701;text-align: center;letter-spacing: -0.1em;}
#stv_list p {padding: 5px 0;text-align: center;}
#stv_nb li {text-align: center;font-weight: 600;border-bottom: 1px solid #dadada;padding: 10px 0px;background: #8dc23d;}
#stv_nb li a{color:#454545}
#stv {z-index: 1001;position: fixed;float: right;top:500px;right:0px;}

#stv_img {z-index: 1001;position: fixed;top:500px;}
#stv_img_list {
    position: absolute;
    left: -200px;
    width: 75px;
    /*border-radius: 4px;
    border: 1px solid #dadada;
    background: #FFF;*/
}
.stv_fix_class { position:fixed !important;top:10px !important; }
#stv_list p img { margin-top:3px; }
.wrapper2 {width:1200px;}

/*좌측:광고배너*/
#stv_left_fixed {position: absolute;width: 195px;border-radius: 4px;background: #FFF;right: 50%;z-index: 500;margin-right: 610px;}
#stv_left_fixed ul li{margin-bottom:5px;}
.stv_left_cs{background:#282828;width:195px;height:100px;text-align:center;padding:15px 0;}
.stv_left_cs .stv_tel{font-size:20px;color:#ffbb18;font-family: Verdana;display: block;padding:8px 0;}
</style>
<input type='hidden' id='top_idx' value='200'>
<input type='hidden' id='top_etc' value='180'>
<input type='hidden' id='up_top_fix' value='180'>
<input type='hidden' id='up_top_nofix' value='10'>
<?php }?>
<div id="wrapper" class='class_skin_idx_<?php echo $sk_idx;?>'>
    <!--따라다니는 배너-->
    <!--좌측배너 : 광고배너-->
    <div id="stv_img">
        <div id="stv_img_list">
            <div class="stv_left_cs mb10"><h2 class="black txt14 white">CS center</h2>
                <a class="bold stv_tel" href="tel:031-763-7333"><?php echo $configshop['telno1']?></a>
                <p class="gray3 txt11 white l_height16 space_1"><?php echo nl2br($configshop['work_time']);?><!--평일 : 오전09시~오후06시<br>
                토요일 : 오전09시~오후12시</p>-->
            </div>
            <?php echo banner_display("좌측플롯1","",$sk_idx); ?>
            <!--<a href="#"><img src="<?php echo $cur_img_url;?>/stv_right_banner.png" alt="우측광고배너"></a>-->
        </div>
    </div>
</div>
<script>
$(function(){
    <?php if($index_main=='Y'){?>
        $top = parseInt($("#top_idx").val());
    <?php } else {?>
        $top = parseInt($("#top_etc").val());
    <?php }?>

    <?php if($configshop['header_fixed']>=2){?>
        $up_top = $("#up_top_fix").val();
        $top_scroll = $top+10-parseInt($up_top);
    <?php } else {?>
        $up_top = $("#up_top_nofix").val();
        $top_scroll = $top+10;
    <?php }?>
    $("#stv, #stv_img").css("top",$top+"px");
    $v = $("#stv");
    $w_width = $(window).width();
    
    if($w_width>1200){
        $v1 = parseInt(($w_width-1200)/2);
        $v2 = 1200+$v1;
        $v.css("left",$v2+"px");
    } else {
        $v.css("left","1200px");
    }
    $(window).scroll(function(){
        var $windowScrollTop=$(window).scrollTop();
        if($windowScrollTop>$top_scroll){
            $("#stv, #stv_img").css("top",$up_top+"px");
        } else {
            $new_top = $top - $windowScrollTop;
            $("#stv, #stv_img").css("top",$new_top+"px");
        }
    });
});
</script>