-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
99 lines (86 loc) · 1.95 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!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" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Simple Slider plugin DEMO</title>
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.simpleslider.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css" media="screen">
* { margin: 0; padding: 0; }
body {
font-family: sans-serif;
color: #222;
padding: 50px;
}
ul { list-style: none; }
.mask {
width: 100px;
height: 100px;
position: relative;
outline: 1px solid red;
overflow: hidden;
}
.content {
height: 100px;
position: absolute;
left: 0;
top: 0;
}
.content li {
width: 100px;
height: 100px;
position: relative;
float: left;
background: #ccc;
}
.controls {
width: 100px;
margin-top: 1em;
}
.controls li {
display: inline;
}
.controls li a {
width: 20px;
height: 20px;
background: #ccc;
color: #666;
margin: 0 5px 0 0;
text-decoration: none;
font-size: 0.9em;
width: 20px;
height: 20px;
line-height: 20px;
display: block;
float: left;
border-radius: 1em;
text-align: center;
}
</style>
<script type="text/javascript" charset="utf-8">
$(function(){
$('.simpleslider').simpleslider({
"controls" : $('.controls'),
"content" : '.content',
"transitionDuration" : 500
});
});
</script>
</head>
<body>
<div class="simpleslider">
<div class="mask">
<ul class="content">
<li>Foo</li>
<li style="width:300px; background: #0c0;">Bar</li>
<li>Baz</li>
</ul>
</div>
<ul class="controls">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
</ul>
</div>
</body>
</html>