-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathimagechange.html
92 lines (86 loc) · 2.27 KB
/
imagechange.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
<!doctype html>
<html>
<head>
<title>Mobile Cookbook</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/mui-base.css" />
<link rel="stylesheet" type="text/css" href="css/mui-imageswitch.css" />
<style type="text/css">
/* #slider{
width: 300px;
}
#slider1{
width: 80%;
margin-top: 40px;
}
#slider1 > .wrap > div{
height: 40%;
}
*/ </style>
</head>
<body>
<h4>图片切换</h4>
<div id='image_slider' class='imagechange'>
<ul class="wrap">
<li>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_3a.jpg">
</li>
<li>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_436d106e37b424ba42169473.jpg">
</li>
<li>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_6a.jpg">
</li>
<li>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_10a.jpg">
</li>
<li>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_1a.jpg">
</li>
</ul>
<ul class="btnsWrap">
</ul>
</div>
<!-- <div id='slider1' class='imagechange'>
<div class="wrap">
<div>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_3a.jpg">
</div>
<div>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_436d106e37b424ba42169473.jpg">
</div>
<div>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_6a.jpg">
</div>
<div>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_10a.jpg">
</div>
<div>
<img src="http://www.cnblogs.com/images/cnblogs_com/Cson/290336/t_1a.jpg">
</div>
</div>
<ul class="btnsWrap">
</ul>
</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" src="js/imagechange.js"></script>
<script type="text/javascript">
var sc = MUI.ImageChange({
id:"image_slider",
isAutoChange:true,
autoChangeTime:3000,
canSwipe:true
});
// var sc1 = MUI.ImageChange({
// id:"slider1",
// isAutoChange:true,
// autoChangeTime:3000,
// canSwipe:true
// });
</script>
</body>
</html>