-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext.html
39 lines (39 loc) · 1.33 KB
/
text.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>轮播</title>
<link rel="stylesheet" href="css/carousel.css">
</head>
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
<script type="text/javascript" src="js/carousel.js"></script>
<body style="padding: 50px">
<div class="poster-main" data-setting='{
"width":1000,
"height":300,
"posterWidth":600,
"posterHeight":300,
"scale":0.8,
"speed":1000,
"autoPlay":true,
"delay":2000,
"verticalAlign":"middle"
}'>
<div class="poster-btn poster-prev-btn"></div>
<ul class="poster-list">
<li class="poster-item"><a href="#"><img src="img/10.png" alt="" width="100%" /></a></li>
<li class="poster-item"><a href="#"><img src="img/12.png" alt="" width="100%" /></a></li>
<li class="poster-item"><a href="#"><img src="img/20.png" alt="" width="100%" /></a></li>
<li class="poster-item"><a href="#"><img src="img/12.png" alt="" width="100%" /></a></li>
<li class="poster-item"><a href="#"><img src="img/10.png" alt="" width="100%" /></a></li>
</ul>
<div class="poster-btn poster-next-btn"></div>
</div>
</body>
<script>
$(function(){
// Carousel
Carousel.init($(".poster-main"));
})
</script>
</html>