-
Notifications
You must be signed in to change notification settings - Fork 2
/
Nogipage.html
68 lines (67 loc) · 1.67 KB
/
Nogipage.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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="js/Nogipage.js"></script>
<style type="text/css">
#Nogipage {
top: 10%;
bottom: 10%;
width: 14%;
position: fixed;
right: 0;
height: 80%;
}
#Nogipage .nogiPre {
height: 10%;
width: 100%;
position: absolute;
right: 0;
color: #bb5dbd;
border-radius: 100% 0 0 0;
border: 2px solid;
}
#Nogipage .nogiNxt {
height: 10%;
width: 100%;
position: absolute;
right: 0;
bottom: 0;
color: #bb5dbd;
border-radius: 0 0 0 100%;
border: 2px solid;
}
#Nogipage .nogiNum {
height: 80%;
width: 100%;
position: absolute;
top: 10%;
overflow-y: scroll;
overflow-x: hidden;
font-size: 1em;
}
#Nogipage .nogiNum span {
color: #bb5dbd;
float: left;
text-align: center;
border-radius: 2em 1em 1em 2em;
font-size: 1.5em;
width: 100%;
margin-bottom: 0.3em;
border: 2px solid;
}
</style>
<script>
window.onload = function () {
new Nogipage().init({
totalPage:1000, //总页数
pageNum:1,//当前页
click:function(pageNum){
console.log(pageNum);
}//点击某页的回调
});
}
</script>
</head>
<body>
</body>
</html>