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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
<?php include_once("_common.php"); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> Slider Preview </title></head> <body style="margin:0;padding:0;"> <!-- #region Jssor Slider Begin --> <!-- Generator: Jssor Slider Maker --> <!-- This code works without jquery library. --> <script src="js/jssor/js/jssor.slider.min.js" type="text/javascript"></script> <script src="js/jquery-1.8.3.min.js" ></script> <script type="text/javascript"> var jssor_1_slider;
$(function(){ var jssor_1_options = { $AutoPlay: true, $FillMode: 1, $Idle: 5000, $SlideWidth: 425, $Cols: 5, $Align: 747, $ArrowNavigatorOptions: { $Class: $JssorArrowNavigator$ } };
jssor_1_slider = new $JssorSlider$("jssor_1", jssor_1_options);
/*responsive code begin*/ /*remove responsive code if you don't want the slider scales while window resizing*/
function WindowSize() { var w = 0; var h = 0; if (window.innerWidth) { /*w3c*/ w = window.innerWidth; h = window.innerHeight; } else { /*IE*/ if (document.documentElement.clientWidth) { /*strict mode*/ w = document.documentElement.clientWidth; h = document.documentElement.clientHeight; } else { /*quirks mode*/ w = document.body.clientWidth; h = document.body.clientHeight; } } return { width: w, height: h }; }
function ScaleSlider() { var refSize = WindowSize().height; if (refSize) { refSize = Math.min(refSize, 430); jssor_1_slider.$ScaleHeight(refSize); } else { window.setTimeout(ScaleSlider, 30); } } ScaleSlider(); $Jssor$.$AddEvent(window, "load", ScaleSlider); $Jssor$.$AddEvent(window, "resize", ScaleSlider); $Jssor$.$AddEvent(window, "orientationchange", ScaleSlider); /*responsive code end*/
jssor_1_slider.$On( // 나머지 이미지 투명하게 메인만 안투명하게 이벤트 처리 $JssorSlider$.$EVT_PARK , function(slideIndex,fromIndex){ //console.log(slideIndex); $("#jssor_1 div .jssor_img").eq(slideIndex).css("opacity","1"); $("#jssor_1 div .jssor_img").eq(fromIndex).css("opacity","0.6"); } );
resize_jassor(); $(window).resize(function(){ resize_jassor(); }); $("#jssor_1 div .jssor_img").each(function(){ // 일단 전체이미지 투명하게 $(this).css("opacity","0.6"); }); });
function resize_jassor(){ // iframe을 이용해서 가운데 처리하기 v = $(window).width(); if(parseInt(v)>1920){ vv = (parseInt(v)-1920)/2; vvv = Math.round(vv); $("#jssor_1").css("position","absolute").css("left",vvv+"px"); } else { vv = (1920-parseInt(v))/2; vvv = Math.round(vv); $("#jssor_1").css("position","absolute").css("left","-"+vvv+"px"); } vvlr = vvv+30; $(".jssora13l").css("left",vvlr+"px"); $(".jssora13r").css("right",vvlr+"px"); } </script> <style> /* jssor slider arrow navigator skin 13 css */ /* .jssora13l (normal) .jssora13r (normal) .jssora13l:hover (normal mouseover) .jssora13r:hover (normal mouseover) .jssora13l.jssora13ldn (mousedown) .jssora13r.jssora13rdn (mousedown) .jssora13l.jssora13lds (disabled) .jssora13r.jssora13rds (disabled) */ .jssora13l, .jssora13r { display: block; position: absolute; /* size of arrow element */ width: 40px; height: 50px; cursor: pointer; background: url('./images/a13.png') no-repeat; overflow: hidden; } .jssora13l { background-position: -10px -35px; } .jssora13r { background-position: -70px -35px; } .jssora13l:hover { background-position: -130px -35px; } .jssora13r:hover { background-position: -190px -35px; } .jssora13l.jssora13ldn { background-position: -250px -35px; } .jssora13r.jssora13rdn { background-position: -310px -35px; } .jssora13l.jssora13lds { background-position: -10px -35px; opacity: .3; pointer-events: none; } .jssora13r.jssora13rds { background-position: -70px -35px; opacity: .3; pointer-events: none; }
</style> <?php $sql = "select * from mBoard_shopping where show_list = '1' order by set_price desc "; $res = mysql_query($sql,$connect_web); while($info = mysql_fetch_array($res)){ $item_list_array[] = $info; } ?> <div class='jssor_main' style='position:relative;width:100%;height:430px;'> <div id="jssor_1" style="position:relative;margin:0 auto;top:0px;left:0px;width:1920px;height:420px;overflow:hidden;visibility:hidden;background:url('http://mjsoft.co/html/ebizmall/images/banner/main_bg_c.png') 50% 0 no-repeat;"> <!-- Loading Screen --> <div data-u="loading" style="position:absolute;top:0px;left:0px;background-color:rgba(0,0,0,0.7);"> <div style="filter: alpha(opacity=70); opacity: 0.7; position: absolute; display: block; top: 0px; left: 0px; width: 100%; height: 100%;"></div> <div style="position:absolute;display:block;background:url('/theme/img/loading.gif') no-repeat center center;top:0px;left:0px;width:100%;height:100%;"></div> </div> <div data-u="slides" style="cursor:default;position:relative;top:0px;left:0px;width:1920px;height:430px;overflow:hidden;"> <?php for($i=0;$i<count($item_list_array);$i++){ $item_info = $item_list_array[$i]; ?> <div> <a href="./item.php?uid=<?echo $item_info['uid'];?>" target='_parent'><img class='jssor_img' data-u="image" src="./data/img/<?php echo $item_info['uid']."/img_banner";?>" /></a> </div> <?php } ?> </div> <!-- Arrow Navigator --> <span data-u="arrowleft" class="jssora13l" style="top:0px;left:30px;width:40px;height:50px;" data-autocenter="2"></span> <span data-u="arrowright" class="jssora13r" style="top:0px;right:30px;width:40px;height:50px;" data-autocenter="2"></span> </div> </div> <!-- #endregion Jssor Slider End -->
</body> </html>
|