-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook.html
More file actions
89 lines (68 loc) · 1.88 KB
/
Copy pathbook.html
File metadata and controls
89 lines (68 loc) · 1.88 KB
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
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/jquery.zoomooz.min.js"></script>
<script src="js/jquery.infinitescroll.min.js"></script>
<style type="text/css">
body {
background: #F4F1F1;
font-size: 12px;
}
#book {
width: 95%;
margin:auto;
}
li {
list-style: none;
float:left;
margin:1em;
}
li img {
width:auto;
height:35em;
box-shadow: 3px 2px 10px #EEE9E9;
}
li #a {
margin: 0 0 0 37em;
}
li #b {
margin: 0 0 0 -2em;
}
</style>
</head>
<body>
<section id="book" class="scroll">
<ul>
<li ><img class="zoomTarget" id="a" src="img/001.jpg"><img class="zoomTarget" src="img/002.jpg"></li>
<li ><img class="zoomTarget" src="img/003.jpg"></li>
<li ><img class="zoomTarget" src="img/004.jpg"></li>
<li ><img class="zoomTarget" src="img/005.jpg"></li>
<li ><img class="zoomTarget" src="img/006.jpg"></li>
<li ><img class="zoomTarget" src="img/007.jpg"></li>
<li ><img class="zoomTarget" src="img/008.jpg"></li>
<li ><img class="zoomTarget" src="img/009.jpg"></li>
<li ><img class="zoomTarget" src="img/010.jpg"></li>
</ul>
</section>
<div class="navigation"><a href="2.html"> </a></div>
<script type="text/javascript">
$('#book').infinitescroll({
navSelector : "div.navigation",
// selector for the paged navigation (it will be hidden)
nextSelector : "div.navigation a:first",
// selector for the NEXT link (to page 2)
itemSelector : "#book ul",
// selector for all items you'll retrieve
extraScrollPx: 150,
animate : true,
debug: true
});
$(window).scroll(function() {
$('ul li').on('hover',function(e){
$(this).zoomTarget();
})
});
</script>
</body>
</html>