This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
study2.html
49 lines (47 loc) · 1.73 KB
/
study2.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html>
<head>
<title>Carousel Study</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="caribou.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#sample").caribou({ direction:'l'});
});
</script>
<style type="text/css">
.clearfix:before,
.clearfix:after {
content:"";
display:table;
}
.clearfix:after {
clear:both;
}
/* For IE 6/7 (trigger hasLayout) */
.clearfix { zoom:1; }
.caribou-left, .caribou-right { display:none;}
.caribou:hover .caribou-left, .caribou:hover .caribou-right { display:block;}
ul { list-style-type:none;
position:relative;
margin:0;
padding:0;}
li { float:left; width:154px; height:148px; text-align:center;}
li img { display:block; margin:0 auto;}
</style>
</head>
<body>
<ul id="sample" class="clearfix">
<li><img src="http://placehold.it/150x100"/><span>One</span></li>
<li><img src="http://placehold.it/150x100"/><span>Two</span></li>
<li><img src="http://placehold.it/100x100"/><span>Three</span></li>
<li><img src="http://placehold.it/150x100"/><span>Four</span></li>
<li><img src="http://placehold.it/90x90"/><span>Five</span></li>
<li><img src="http://placehold.it/150x100"/><span>Six</span></li>
<li><img src="http://placehold.it/150x100"/><span>Seven</span></li>
<li><img src="http://placehold.it/150x60"/><span>Eight</span></li>
<li><img src="http://placehold.it/150x100"/><span>Nine</span></li>
</ul>
</body>
</html>