/home/mjc1/public_html/html/millennium/popup_layer3.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php include_once("./_common2.php"); ?>
<!-- ################################################# -->
<!-- ÆË¾÷ ¶ç¿ì±â ·¹À̾öÁ¯-->
<?php
    
// ÆË¾÷À» ¿©·¯°³¸¦ ¶ç¿ï°æ¿ì ¿©±â¶óÀΠºÎÅÍ ¾Æ·¡¿¡ À̰Ͱú °°Àº ¶óÀαîÁö º¹»çÇÏ°í ¼ø¹øÀ» µû·Î ÁÖ°í ³ª¸ÓÁö Ç׸ñÀ» ´Ù¸£°Ô Áָ頵Ê
    
$nw['nw_id'] = 4// ¼ø¹ø
    
$nw['nw_enable'] = 1// ÆË¾÷ »ç¿ë 1 - »ç¿ë, 0 - »ç¿ë¾ÈÇÔ
    
$nw['nw_top'] = 10//»ó´Ü À§Ä¡ »ó´Ü headr³ôÀÌ ¾Æ·¡ºÎÅÍ Àû¿ë ÄÁÅ×À̳ʺÎÅÍ Àû¿ëµÈ´Ù »ý°¢ÇϸéµÊ ³ôÀÌ ¿Ã¸±·Á¸é -¼ýÀÚ Àû¿ë
    
$nw['nw_left'] = 410//ÁÂÃø À§Ä¡ ÄÁÅ×À̳ʠ±âÁØÀ¸·Î ¼ýÀÚ Àû¿ëÇØ¾ßÇÔ
    
$nw['nw_width'] = 391//ÆË¾÷ °¡·Î ³ÐÀÌ
    
$nw['nw_height'] = 310//ÆË¾÷ ¼¼·Î ³ÐÀÌ
    
$nw['nw_disable_hours'] = 24;  // ´Ý´Â ½Ã°£
    
$nw['nw_disable_monthly'] = 720;  // 1´Þ°£ º¸Áö¾Ê±â
?>
<style>
    /* ÆË¾÷·¹À̾î */
    #hd_pop {z-index:1000;position:relative;margin:0 auto;width:970px;height:0}
    #hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
    .hd_pops {position:absolute;background:#fff}
    .hd_pops_con {}
    .hd_pops_footer {padding:10px;background:#000;color:#fff;text-align:right}
    .hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff;cursor:pointer}
</style>
<?
    
if($nw['nw_enable']==1){
        if(!
$_COOKIE['hd_pops_'.$nw['nw_id']]){
?>
<!--
<div id="hd_pop">
    <h2>ÆË¾÷·¹À̾˸²</h2>
    <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">
                <img src='http://mjsoft.co/html/millennium/img/popup/cardstop.png' alt="Ä«µåÁß´Ü" usemap="#link">
                <map name="image-maps-2017-04-13-230107" id="link">
                    <area  alt="" title="" href="http://www.ebizmall.co.kr/" shape="rect" coords="130,256,267,300" style="outline:none;" target="_self"     />
                    <area shape="rect" coords="398,343,400,345" alt="Image Map" style="outline:none;" title="Image Map" href="http://www.image-maps.com/index.php?aff=mapped_users_0" />
                </map>
        </div>
        <div class="hd_pops_footer">
            <button class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_monthly']; ?>"><strong>1°³¿ù</strong> µ¿¾È º¸Áö¾Ê±â</button>
            <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>
</div>


<div id="hd_pop">
    <h2>ÆË¾÷·¹À̾˸²</h2>
    <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">
                <img src='http://mjsoft.co/html/millennium/img/popup/holiday_delivery.png' alt="Ãß¼®¿¬ÈÞ" usemap="#link">
        </div>
        <div class="hd_pops_footer">
            <button class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_monthly']; ?>"><strong>1°³¿ù</strong> µ¿¾È º¸Áö¾Ê±â</button>
            <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>
</div>-->



<?
        
}
    }
    
// ÆË¾÷À» ¿©·¯°³¸¦ ¶ç¿ï°æ¿ì ¿©±â¶óÀΠ±îÁö ÁÖ¼® Æ÷ÇÔ ¶È°°ÀÌ º¹»çÇÏ°í »ó´Ü³»¿ë󷳠ó¸®Çϸ頵Ê
?>




<!-- ÆË¾÷ ¶ç¿ì±â ·¹À̾öÁ¯-->
<?php
    
// ÆË¾÷À» ¿©·¯°³¸¦ ¶ç¿ï°æ¿ì ¿©±â¶óÀΠºÎÅÍ ¾Æ·¡¿¡ À̰Ͱú °°Àº ¶óÀαîÁö º¹»çÇÏ°í ¼ø¹øÀ» µû·Î ÁÖ°í ³ª¸ÓÁö Ç׸ñÀ» ´Ù¸£°Ô Áָ頵Ê
    
$nw['nw_id'] = 4// ¼ø¹ø
    
$nw['nw_enable'] = 0// ÆË¾÷ »ç¿ë 1 - »ç¿ë, 0 - »ç¿ë¾ÈÇÔ
    
$nw['nw_top'] = 10//»ó´Ü À§Ä¡ »ó´Ü headr³ôÀÌ ¾Æ·¡ºÎÅÍ Àû¿ë ÄÁÅ×À̳ʺÎÅÍ Àû¿ëµÈ´Ù »ý°¢ÇϸéµÊ ³ôÀÌ ¿Ã¸±·Á¸é -¼ýÀÚ Àû¿ë
    
$nw['nw_left'] = 410//ÁÂÃø À§Ä¡ ÄÁÅ×À̳ʠ±âÁØÀ¸·Î ¼ýÀÚ Àû¿ëÇØ¾ßÇÔ
    
$nw['nw_width'] = 400//ÆË¾÷ °¡·Î ³ÐÀÌ
    
$nw['nw_height'] = 310//ÆË¾÷ ¼¼·Î ³ÐÀÌ
    
$nw['nw_disable_hours'] = 24;  // ´Ý´Â ½Ã°£
    
$nw['nw_disable_monthly'] = 720;  // 1´Þ°£ º¸Áö¾Ê±â
?>
<style>
    /* ÆË¾÷·¹À̾î */
    #hd_pop {z-index:1000;position:relative;margin:0 auto;width:970px;height:0}
    #hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
    .hd_pops {position:absolute;background:#fff}
    .hd_pops_con {}
    .hd_pops_footer {padding:10px;background:#000;color:#fff;text-align:right}
    .hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff;cursor:pointer}
</style>
<?
    
if($nw['nw_enable']==1){
        if(!
$_COOKIE['hd_pops_'.$nw['nw_id']]){
?>
<div id="hd_pop">
    <h2>ÆË¾÷·¹À̾˸²</h2>
    <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">
            <!-- ÆË¾÷ ³»¿ë -->
            <img src='http://mjsoft.co/html/millennium/img/popup/notice_time_pop.png' alt="Àü±âÁß´Ü">
            <!-- ÆË¾÷ ³»¿ë ³¡ -->
        </div>
        <div class="hd_pops_footer">
            <button class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_monthly']; ?>"><strong>1°³¿ù</strong> µ¿¾È º¸Áö¾Ê±â</button>
            <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>
</div>
<?
        
}
    }
    
// ÆË¾÷À» ¿©·¯°³¸¦ ¶ç¿ï°æ¿ì ¿©±â¶óÀΠ±îÁö ÁÖ¼® Æ÷ÇÔ ¶È°°ÀÌ º¹»çÇÏ°í »ó´Ü³»¿ë󷳠ó¸®Çϸ頵Ê
?>


<script>
$(function() {
    // ÄíŰ ÀÔ·Â
    function set_cookie(name, value, expirehours, domain)
    {
        var today = new Date();
        today.setTime(today.getTime() + (60*60*1000*expirehours));
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";";
        if (domain) {
            document.cookie += "domain=" + domain + ";";
        }
    }

    $(".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, '<?php $_SERVER["HTTP_HOST"]?>');
    });
    $('.hd_pops_close').click(function() {
        var idb = $(this).attr('class').split(' ');
        $('#'+idb[1]).css('display','none');
    });
    $("#hd").css("z-index", 1000);
});
</script>
<!-- ÆË¾÷ ¶ç¿ì±â ³¡ -->
<!-- ################################################# -->