/
auto_reverse.html
103 lines (93 loc) · 2.78 KB
/
auto_reverse.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>rcarousel – Auto mode</title>
<link type="text/css" rel="stylesheet" href="css/reset.css" />
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link type="text/css" rel="stylesheet" href="../widget/css/rcarousel.css" />
<style type="text/css">
#container {
width: 420px;
position: relative;
}
#carousel {
margin: 0 auto;
}
#carousel img {
border: 0;
}
#ui-carousel-next, #ui-carousel-prev {
width: 60px;
height: 100px;
background: url(images/arrow-left.png) #fff center center no-repeat;
display: block;
position: absolute;
top: 0;
z-index: 100;
}
#ui-carousel-next {
right: 0;
background-image: url(images/arrow-right.png);
}
#ui-carousel-prev {
left: 0;
}
#ui-carousel-next > span, #ui-carousel-prev > span {
display: none;
}
</style>
</head>
<body>
<div id="header">
<p>
This is an example of <em>rcarousel</em> – a jQuery UI continuous carousel.
Go back to the <a href="http://ryrych.github.com/rcarousel/">documentation</a>
</p>
</div>
<div id="content">
<h1>carousel with Auto mode, custom interval between slides and reversed direction</h1>
<div id="container">
<div id="carousel">
<img src="images/001.jpg" />
<img src="images/002.jpg" />
<img src="images/003.jpg" />
<img src="images/004.jpg" />
<img src="images/005.jpg" />
<img src="images/006.jpg" />
<img src="images/007.jpg" />
<img src="images/008.jpg" />
<img src="images/009.jpg" />
<img src="images/010.jpg" />
</div>
<a href="#" id="ui-carousel-next"><span>next</span></a>
<a href="#" id="ui-carousel-prev"><span>prev</span></a>
</div>
</div>
<script type="text/javascript" src="../widget/lib/jquery-1.7.1.js"></script>
<script type="text/javascript" src="../widget/lib/jquery.ui.core.js"></script>
<script type="text/javascript" src="../widget/lib/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../widget/lib/jquery.ui.rcarousel.js"></script>
<script type="text/javascript">
jQuery(function( $ ) {
$( "#carousel" ).rcarousel({
auto: {
enabled: true,
interval: 3000,
direction: "prev"
}
});
$( "#ui-carousel-next" )
.add( "#ui-carousel-prev" )
.hover(
function() {
$( this ).css( "opacity", 0.7 );
},
function() {
$( this ).css( "opacity", 1.0 );
}
);
});
</script
</body>
</html>