-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlider_mix_new.html
227 lines (189 loc) · 6.56 KB
/
Slider_mix_new.html
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=0, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta content="telephone=no" name="format-detection" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta name="full-screen" content="yes">
<meta name="x5-fullscreen" content="true">
<title>无标题文档</title>
<link rel="stylesheet" href="css/asdui1.4b.css" type="text/css" media="all" />
<style>
a:link,a:visited{color:#f00; text-decoration:underline}
.SL_box3{ color: #ccc;
display: inline-block;
height: 180px;
overflow: hidden;
padding: 10px;
position: absolute;
text-align: justify;
width: 680px;}
#SLin2 .SL_box{position:absolute}
.SL_box4{width:100px;height:100px;float:left}
.a{background:#d8d8d8;}
.b{background:#cdcdcd;}
.c{background:#b7b7b7;}
.d{background:#9d9d9d;}
.e{background:#868686;}
.f{background:#6c6b6b;}
.g{background:#4d4c4c;}
</style>
</head>
<body>
<h2>Horizontal</h2>
<div id="SL" style="width:700px;border:1px solid #f00;background:none">
<div id="Slin" style="width:700px;margin:0 auto;position:relative">
<div class="SL_box" id="S1" style="background:#F60;color:#fff">
<!--<h2 class="animate">First article1</h2>
<p class="animate">Some description</p>-->
11111
</div>
<div class="SL_box" id="S2" style="background:#060">
<!--<h2 class="animate">First article2</h2>
<p class="animate">Some description</p> -->
2222
</div>
<div class="SL_box" id="S3" style="background:#f30;color:#fff">
<!--<h2 class="animate">First article3</h2>
<p class="animate">Some description</p> -->
33333
</div>
<div class="SL_box" id="S4" style="background:#000;color:#fff">
<!--<h2 class="animate">First article4</h2>
<p class="animate">Some description</p> -->
4444
</div>
</div>
</div>
<a href="javascript:void(0)" id="prev"><上一个</a> | <a href="javascript:void(0)" id="next">下一个></a> | <a href="javascript:void(0)" onClick="Sl.goToSlide(2)">跳转到第3个</a> | <a href="javascript:void(0)" id="CgSL">动态改变</a>
<div class="SL_nav" id="SL_nav">
</div>
<h2>Fade</h2>
<div id="SL2" style="position:relative;width:500px;height:250px">
<div id="SLin2">
<!-- this is an article -->
<div class="SL_box" style="background:#fc0;color:#fff">
<h2>1111111111</h2>
<p>Some description</p>
<div class="SL_info">1111111</div>
</div>
<div class="SL_box">
<h2>22222222222</h2>
<p>Some description</p>
<div class="SL_info">2222222</div>
</div>
<div class="SL_box" id="dltMe" style="background:#f30;color:#fff">
<h2>333333333</h2>
<p>Some description</p>
<div class="SL_info">33333333</div>
</div>
</div>
</div>
<div class="SL_nav" id="SL_nav2">
<a href="#" title="Click to navigate"></a>
<a href="#" title="Click to navigate"></a>
<a href="#" title="Click to navigate"></a>
</div>
<h2>Carousel</h2>
<div id="SL4" style="position:relative;width:100%; box-sizing:border-box;margin:0 auto;overflow:hidden;height:100px;border:1px solid #555">
<div id="SLin4">
<div class="SL_box4 a" id="1" style="background:#d8d8d8;">1</div>
<div class="SL_box4 b" id="2" style="background:#cdcdcd;">2</div>
<div class="SL_box4 c" id="3" style="background:#b7b7b7;">3</div>
<div class="SL_box4 d" id="4" style="background:#9d9d9d;">4</div>
<div class="SL_box4 e" id="5" style="background:#868686;">5</div>
</div>
</div>
<span id="sright">下一区</span>
<span id="sleft">上一区</span>
<div class="SL_nav" id="SL_nav4" style="position:static"></div>
<script type="text/javascript" src="js/jquery1.91.min.js"></script>
<script src="js/asdui.js" type="text/javascript"></script>
<script type="text/javascript">
var Sl = new ZUI.SL('SL',{
moveBox:'Slin',
slides: 'SL_box',
slideDuration:5000,
effectDuration:1000,
page:0,
effect:'linear',
fadeDist:700,
fadePosition:'horizontal',//$.browser.mobile ? 'carousel' :
stopSlideOnClick: true,
autoSlide: false,
circle:true,//是否首尾相连
nextBtn:'#next',//next id
prevBtn:'#prev',//prev id
navBuild:'<a href="#" title="Click to navigate" class=""></a>',//是否自动创建dot,false为不创建
navigationNums: true,//是否显示数字索引
navbox:'SL_nav',//数字导航容器
nav:'a',//数字导航元素
onStart:function(D,E){
//$('Slin').fade(.7);
//$.spAni && D.find('.animate').each(function(i,item){
//$(item).removeClass('bounceInLeft')
//});
},
onFinish:function(D,E){
//$('Slin').fade('in');
//D.find('.animate').addClass('bounceInLeft');
//$('#output').html(D.attr('id')+'显示'+E.attr('id')+'隐藏');
}
});
var Sl2 = new ZUI.SL('SL2',{
moveBox:'SLin2',
slides:'SL_box',
slideDuration:5000,
effectDuration:500,
fadeDist:600,
fadePosition:'fade',
stopSlideOnClick: false,
autoSlide: false,
navigationNums: true, // if true, numbers will appear
navbox:'SL_nav2',
onStart:function(){
//alert('begin')
},
onFinish:function(){
//alert('finish')
}
});
var Sl4 = new ZUI.SL('SL4',{
moveBox:'SLin4',
slides:'SL_box4',
slideDuration:5000,
effectDuration:500,
fadeDist:null,
fadePosition:'carousel',
stopSlideOnClick: false,
autoSlide: false,
nextBtn:"#sleft",
prevBtn:"#sright",
amount:2,//滚动个数
visual:2,//可视个数包括滚动情况下
navBuild:'<a href="#" title="Click to navigate" class=""></a>',//是否自动创建dot,false为不创建
navigationNums: false,//是否显示数字索引
navbox:'SL_nav4',//数字导航容器
nav:'a',//数字导航元素
circle:false,
autoSize:true,
mouseWheel:true,
onNext:function(inx){
//console.log(inx);
},
onPrev:function(inx){
//console.log(inx);
},
onStart:function(){
//console.log('begin');
},
onFinish:function(D,E,move,s){
console.log(s.visibleItems());
}
});
</script>
</body>
</html>