forked from bkosborne/jQuery-Feature-Carousel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·83 lines (77 loc) · 3.12 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>Feature Carousel Demonstration Test</title>
<link rel="stylesheet" href="css/feature-carousel.css" charset="utf-8" />
<script src="js/jquery-1.7.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.featureCarousel.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function() {
var carousel = $("#carousel").featureCarousel({
// include options like this:
// (use quotes only for string values, and no trailing comma after last option)
// option: value,
// option: value
});
$("#but_prev").click(function () {
carousel.prev();
});
$("#but_pause").click(function () {
carousel.pause();
});
$("#but_start").click(function () {
carousel.start();
});
$("#but_next").click(function () {
carousel.next();
});
});
</script>
</head>
<body>
<a id="but_prev" href="#">PREV</a> | <a id="but_pause" href="#">PAUSE</a> | <a id="but_start" href="#">START</a> | <a id="but_next" href="#">NEXT</a>
<div class="carousel-container">
<div id="carousel">
<div class="carousel-feature">
<a href="#"><img class="carousel-image" alt="Image Caption" src="images/sample1.jpg"></a>
<div class="carousel-caption">
<p>
This area is typically used to display captions associated with the images. They are set to hide and fade in on rotation.
</p>
</div>
</div>
<div class="carousel-feature">
<a href="#"><img class="carousel-image" alt="Image Caption" src="images/sample2.jpg"></a>
<div class="carousel-caption">
<p>
The background will expand up or down to fit the caption.
</p>
</div>
</div>
<div class="carousel-feature">
<a href="#"><img class="carousel-image" alt="Image Caption" src="images/sample3.jpg"></a>
<div class="carousel-caption">
<p>
Images can be placed here as well.
</p>
</div>
</div>
<div class="carousel-feature">
<a href="#"><img class="carousel-image" alt="Image Caption" src="images/sample4.jpg"></a>
</div>
<div class="carousel-feature">
<a href="#"><img class="carousel-image" alt="Image Caption" src="images/sample5.jpg"></a>
<div class="carousel-caption">
<p>
The background color of the caption area can be changed using CSS. The opacity can be changed in the options, but it will also change the opacity of the text.
</p>
</div>
</div>
</div>
<div id="carousel-left"><img src="images/arrow-left.png" /></div>
<div id="carousel-right"><img src="images/arrow-right.png" /></div>
</div>
</body>
</html>