-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathexample.html
118 lines (102 loc) · 3.4 KB
/
example.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!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" xml:lang="en">
<head>
<title>slider test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="language" content="en" />
<meta name="robots" content="all" />
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="simple.carousel.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
// example 1
$("ul.example1").simplecarousel({
width:40,
height:40,
visible: 3,
auto: 3000,
next: $('.next'),
prev: $('.prev')
});
// example 2
$("ul.example2").simplecarousel({
width:700,
height:400,
auto: 4000,
fade: 400,
pagination: true
});
});
</script>
<style>
.example1 {
margin:0;
padding:0;
list-style:none;
}
li {
text-align:center;
}
li span {
display:block;
margin:5px;
background:red;
}
.next,
.prev {
cursor:pointer;
}
.example2 {
margin:0;
padding:0;
list-style:none;
width:697px;
height:400px;
overflow:hidden;
}
.example2 li {
text-align:left;
display:block;
width:697px;
height:400px;
}
.carousel-pagination li {
display:block;
width:10px;
height:10px;
margin-right:5px;
cursor:pointer;
float:left;
background:#333;
}
.carousel-pagination .carousel-pagination-active {
background:#ff0000;
}
</style>
</head>
<body>
<h1>Example 1</h1>
<ul class="example1">
<li><span>1</span></li>
<li><span>2</span></li>
<li><span>3</span></li>
<li><span>4</span></li>
<li><span>5</span></li>
<li><span>6</span></li>
<li><span>7</span></li>
<li><span>8</span></li>
<li><span>9</span></li>
<li><span>10</span></li>
<li><span>11</span></li>
</ul>
<span class="prev">prev</span>
<span class="next">next</span>
<h1>Example 2</h1>
<ul class="example2">
<li><img src="http://www.aditu.de/wp-content/uploads/2014/03/slideshow_a_day_without_rain_by_Tobias_Zeising-640x402.jpg" alt="a day without rain by Tobias Zeising" /></li>
<li><img src="http://www.aditu.de/wp-content/uploads/2014/03/slideshow_windless_by_Tobias_Zeising-640x402.jpg" alt="windless by Tobias Zeising" /></li>
<li><img src="http://www.aditu.de/wp-content/uploads/2014/03/slideshow_piece_by_piece_by_Tobias_Zeising-640x402.jpg" alt="piece by piece by Tobias Zeising" /></li>
<li><img src="http://www.aditu.de/wp-content/uploads/2014/03/slideshow_autumn_sun_by_Tobias_Zeising-640x402.jpg" alt="autumn sun by Tobias Zeising" /></li>
</ul>
</body>
</html>