-
Notifications
You must be signed in to change notification settings - Fork 65
/
swipe_change.html
48 lines (43 loc) · 1.13 KB
/
swipe_change.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
<!doctype html>
<html>
<head>
<title>Mobile Cookbook</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no,target-densitydpi=medium-dpi" />
<link rel="stylesheet" type="text/css" href="css/mui-base.css" />
<link rel="stylesheet" type="text/css" href="css/mui-slide.css" />
<style>
.wrap > li > div{
height: 100%;
line-height: 100px;
text-align: center;
color: white;
font-size: 25px;
font-weight: bold;
background: rgb(130, 197, 197);
}
</style>
</head>
<body>
<h4 style="position:absolute;z-index:1;">拖动切换</h4>
<div id='swipeChange' class="slide">
<div class="wrap">
<li><div>1</div></li>
<li><div>2</div></li>
<li><div>3</div></li>
<li><div>4</div></li>
<li><div>5</div></li>
</div>
</div>
<script type="text/javascript" src="js/JM.js"></script>
<script type="text/javascript" src="js/slide.js"></script>
<script type="text/javascript" src="js/swipechange.js"></script>
<script type="text/javascript">
var sc = MUI.SwipeChange({
id:"swipeChange",
currentIndex:1,
fastChange:true
});
</script>
</body>
</html>