-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo.html
118 lines (108 loc) · 3.31 KB
/
demo.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>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
#album, #album2 {
position: relative;
width: 450px;
height: 450px;
overflow: hidden;
margin: 0 auto;
border: 2px solid #ffffff;
background-color: #000000;
}
#album ul li, #album2 ul li {
display: block;
}
.paging {
position: absolute;
top: 0px;
left: 0px;
width: 450px;
height: 450px;
margin: 0;
padding: 0;
}
.page {
float: left;
width: 440px;
height: 440px;
margin: 4px;
border: 1px solid #666666;
background-color: #efefef;
background-position: 50% 50%;
background-repeat: no-repeat;
color: #000000;
text-align: center;
font-size: 2.85em;
display: none;
cursor: pointer;
}
.banner_pager{
list-style:none;
width:310px;
display:block;
margin:0 auto;
padding:0;
text-align:center;
height:28px;
}
.banner_pager > li{
display:inline;
cursor:pointer;
padding:0px 2px;
font-size:50px;
line-height:28px;
color:#CCC;
}
.banner_pager > li.on{
color:#00C3FF;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="./jquery.iphone-slide.js"></script>
</head>
<body>
<div id="album">
<ul class="paging">
<li class="page">1</li>
<li class="page">2</li>
<li class="page">3</li>
<li class="page">4</li>
<li class="page">5</li>
<li class="page">6</li>
</ul>
</div>
<div id="album2">
<ul class="paging">
<li class="page">1</li>
<li class="page">2</li>
<li class="page">3</li>
<li class="page">4</li>
<li class="page">5</li>
<li class="page">6</li>
</ul>
</div>
<script>
$(document).ready(function() {
$('#album').iphoneSlide({
handler: '.paging',
pageHandler: '.page',
autoCreatePager: true
});
//console.log($('#album').data('iphoneslide'));
});
$(document).ready(function() {
$('#album2').iphoneSlide({
handler: '.paging',
pageHandler: '.page',
direction: 'vertical',
autoCreatePager:false
});
//console.log($('#album').data('iphoneslide'));
});
</script>
</body>
</html>