-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex1.html
More file actions
44 lines (39 loc) · 1.03 KB
/
index1.html
File metadata and controls
44 lines (39 loc) · 1.03 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>图片插件</title>
<style>
.imgView img {width: 200px;}
</style>
</head>
<body>
<div class="imgView">
<img class="imgView_item" imgViewSrc="./img/1.jpg" src="./img/1.jpg" />
<img class="imgView_item" imgViewSrc="./img/2.jpg" src="./img/2.jpg" />
<img class="imgView_item" imgViewSrc="./img/3.jpg" src="./img/3.jpg" />
</div>
<button class="button">按钮</button>
<script type="text/javascript" src="jquery-2.1.4.js"></script>
<script type="text/javascript" src="imgview.js"></script>
<script type="text/javascript">
$('.button').click(function (){
$.imgView({
imgs:[
'img/1.jpg',
'img/2.jpg',
'img/3.jpg',
'img/4.jpg',
'img/5.jpg',
'img/6.jpg'
],
infoDom:null,
zoom:null,
onSwitch:function(i){
console.log(i);
}
});
});
</script>
</body>
</html>