-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (60 loc) · 1.71 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>carousel</title>
<link rel="stylesheet" type="text/css" href="normalize.css">
<link rel="stylesheet" type="text/css" href="carousel.css">
<style type="text/css">
.ie{
behavior:url(PIE.htc);
position: relative\9 !important;
z-index: 99\9;
}
</style>
</head>
<body>
<div id="banner">
<div id="banner_img" class="banner_img">
<a href="###"><img src="1.png" alt=""></a>
<a href="###"><img src="2.png" alt=""></a>
<a href="###"><img src="3.png" alt=""></a>
<a href="###"><img src="4.png" alt=""></a>
</div>
<div class="btn">
<a href="###" class="prev"></a>
<a href="###" class="next"></a>
</div>
</div>
</body>
<script type="text/javascript" src="carousel.js"></script>
<script type="text/javascript">
//banner初始状态
Carousel("#banner","#banner_img",{prevBtn:".prev",nextBtn:".next",indexBtn:true,
// height:380,
duration:40,
autoPlay:true,
autoPlayDir:"left",
autoPlayTime:3000,
actClass:"actClass",
minWidth:"1024"
});
/*第1个参数轮播容器选择器
第2个参数图片列表选择器
第3个参数
{
autoPlay//开启自动播放,默认不开启 ,
height//轮播高度
autoPlayTime//轮播间隔,默认1000
autoPlayDir//轮播方向,默认'left'
indexBtn//下标按钮选择器,默认false不显示,开启直接给选择器就行
actClass//下标按钮选中样式
prevBtn//左按钮选择器,默认.prev
nextBtn//右按钮选择器,默认.next
duration//动画过渡时长,默认40
BezierCurve://贝赛尔曲线函数,默认ease
minWidth//轮播最小宽度
}
*/
</script>
</html>