-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest01.html
68 lines (59 loc) · 2.11 KB
/
test01.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<link rel="stylesheet" href="css/master.css">
<link rel="stylesheet" href="css/jquery.fullPage.css">
<script src="js/jquery/jquery-1.9.1.min.js"></script>
<script src="js/jquery-ui/jquery-ui-1.10.3.min.js"></script>
<script src="js/jquery.fullPage.min.js"></script>
<style type="text/css">
#menu{ position:fixed; right:5px; top:300px; width:120px; height:100px;}
.active a{ color:#f00;}
</style>
</head>
<body>
<div id="fullpage">
<div class="section">Some section1</div>
<div class="section">
<div class="slide" data-anchor="slide1"> Slide 1 </div>
<div class="slide" data-anchor="slide2"> Slide 2 </div>
<div class="slide" data-anchor="slide3"> Slide 3 </div>
<div class="slide" data-anchor="slide4"> Slide 4 </div>
</div>
<div class="section">Some section3</div>
<div class="section">Some section4</div>
</div>
<ul id="menu">
<li data-menuanchor="firstPage" class="active"><a href="#firstPage">First slide</a></li>
<li data-menuanchor="secondPage"><a href="#secondPage">Second slide</a></li>
<li data-menuanchor="3rdPage"><a href="#3rdPage">Third slide</a></li>
<li data-menuanchor="4thpage"><a href="#4thpage">Fourth slide</a></li>
</ul>
<script>
$(document).ready(function() {
$('#fullpage').fullpage({
//Navigation
menu: '#menu',
navigation: true,
slidesColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', '#f90'],
anchors:['firstPage', 'secondPage', '3rdPage', '4thpage'],
//navigation: false,
// navigationPosition: 'right',
// navigationTooltips: ['firstPage', 'secondPage', '3rdPage', '4thpage'],
slidesNavigation: true,
slidesNavPosition: 'bottom',
//events
onLeave: function(index, nextIndex, direction){},
afterLoad: function(anchorLink, index){
},
afterRender: function(){},
afterResize: function(){},
afterSlideLoad: function(anchorLink, index, slideAnchor, slideIndex){},
onSlideLeave: function(anchorLink, index, slideIndex, direction){}
});
});
</script>
</body>
</html>