-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlider_carousel_Z.html
168 lines (147 loc) · 5.2 KB
/
Slider_carousel_Z.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mooTipsy</title>
<link rel="stylesheet" href="css/asdui1.4b.css" type="text/css" media="all" />
<style type="text/css">
a:link,a:visited{color:#f00; text-decoration:underline}
fieldset{margin:20px 10px}
pre{border:1px solid #fc0;background:#ffd;padding:5px}
fieldset{margin:20px;padding:20px;text-align:left}
fieldset legend{padding:5px 10px;font-weight:700;font-size:16px}
table{color:#333;background:#E8F5FE;border-collapse:collapse;width:100%;text-align:left;}
thead{}
thead th{padding:1em 1em .5em;border:1px solid #5C9CC0;font-size:120%;background:#5C9CC0;text-align:left}
thead tr{}
td{padding:.5em 1em;border:1px solid #BBE1F1}
tbody td{background:#EEFAFF;}
tfoot{background-color:#A9C9E2;}
tfoot td{padding-bottom:1.5em;border:1px solid #BBE1F1}
dl{padding:10px 5px}
dl dt{font-weight:700;font-sie:14px;padding:5px 0;}
dl dt span{color:#f60;padding:0 8px}
pre{border:1px solid #ADCD3C;background-color:#F2FDDB;padding:5px;white-space: pre-wrap;
word-wrap: break-word;}
.animate:nth-child(2){
-webkit-transition-delay: 1s;
-moz-transition-delay: 1s;
-o-transition-delay: 1s;
-ms-transition-delay: 1s;
transition-delay: 1s;
}
.animate:nth-child(3){
-webkit-transition-delay: 0.5s;
-moz-transition-delay: 0.5s;
-o-transition-delay: 0.5s;
-ms-transition-delay: 0.5s;
transition-delay: 0.5s;
}
.SL_box3{height:100px;color:#000;}
.abc{opacity:1;background:#000;font-size:20px}
.previous,.next{z-index:0}
.flow_current{z-index:100;display:block;color:#f00;/*font-size:20px*/}
.flowPrev_1,.flowNext_1{opacity:.8;display:block}
.flowPrev_2,.flowNext_2{opacity:.6;display:block}
.flowPrev_3,.flowNext_3{opacity:.4;display:block}
.flowPrev_4,.flowNext_4{opacity:.2;display:block}
</style>
</head>
<body>
<fieldset>
<legend>ASDUI.SL demo</legend>
<div id="output" style="border:2px solid blue;background:#fff;width:300px;height:50px;position:absolute;right:10px;top:40px;"></div>
<div style="width:100%;overflow:hidden">
<div id="SL" style="width:300px;margin:0 auto;overflow:hidden;height:100px;background:none;">
<div id="Slin" style="width:100px;position:relative">
<div class="SL_box3" id="S1" style="background-color:#96c;color:#fff">1</div>
<div class="SL_box3" id="S2" style="background:#060">2</div>
<div class="SL_box3" id="S3" style="background:#f30;color:#fff">3</div>
<div class="SL_box3" id="S4" style="background:#ffd;color:#888">4</div>
<div class="SL_box3" id="S5" style="background:#111;color:#888">5</div>
<div class="SL_box3" id="S6" style="background:#222;color:#888">6</div>
</div>
</div>
</div>
<a href="javascript:void(0)" id="next">下一个</a> | <a href="javascript:void(0)" id="prev">上一个</a>
<a href="javascript:void(0)" onClick="Sl.goToSlide(5)">GO To 5</a>
<div class="SL_nav" id="SL_nav3">
<a href="#" title="Click to navigate" class="active"></a>
<a href="#" title="Click to navigate" class=""></a>
<a href="#" title="Click to navigate" class=""></a>
<a href="#" title="Click to navigate" class=""></a>
<a href="#" title="Click to navigate" class=""></a>
<a href="#" title="Click to navigate" class=""></a>
</div>
</fieldset>
<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_box3',
slideDuration:5000,
effectDuration:200,
effect:'linear',
fadeDist:100,
skew:10,
fadePosition:'carouselX1',
autoSlide: false,
navbox:'SL_nav3',
nextBtn:'next',
prevBtn:'prev',
skew:0,
limit:5,
navigationNums: true, // if true, numbers will appear
//circle:false,
continued:true,
//circle:false,//是否首尾相连
onInit:function(D){
console.log('Slider Init!');
},
onStart:function(D,E){
//console.log('Start!');
},
// onFinish:function(D,E){
//
// $('#output').html(D.attr('id')+'显示'+E.attr('id')+'隐藏');
//
// },
// onNext:function(a,b){
//
// if(a+1==b){
//// p1 = true;
//// p2 = false;
// $('#next').css('color','#000');
// //return false;
// }else{
// //p1 = false;
// $('#next').css('color','#f00');
// }
//
// },
// onPrev:function(a,b){
// //console.log(a);
// if(a<1){
// //p2 = true;
// //p1 = false;
// $('#prev').css('color','#000');
// }else{
// //p2 = false;
// $('#prev').css('color','#f00');
// }
// }
onPrev:function(a,b,c){
//c.fadeTo(100,0.5)
},
onNext:function(a,b,c){
//c.fadeTo(100,0.5)
},
onFinish:function(a,b,c){
//c.fadeTo(100,1)
}
});
//window.shake()
</script>
</body>
</html>