-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnewset.html
More file actions
86 lines (70 loc) · 2.32 KB
/
newset.html
File metadata and controls
86 lines (70 loc) · 2.32 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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
imagemax - A jQuery plugin for fullscreen image, galleries or slideshows
Site : www.zerostatic.com/imagemax
Company : zerostatic.com
License : MIT License
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Imagemax JQuery Plugin</title>
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<div id="bg">
<img data-src="img/bg1.jpg"/>
<img data-src="img/bg2.jpg"/>
<img data-src="img/bg3.jpg"/>
<img data-src="img/bg4.jpg"/>
</div>
<ul id="thumbs1">
<li><img src="img/thumb1.jpg"/> </li>
<li><img src="img/thumb2.jpg"/></li>
<li><img src="img/thumb3.jpg"/></li>
<li><img src="img/thumb4.jpg"/></li>
</ul>
<ul id="thumbs2">
<li><img src="img/thumb5.jpg"/> </li>
<li><img src="img/thumb6.jpg"/></li>
<li><img src="img/thumb7.jpg"/></li>
<li><img src="img/thumb8.jpg"/></li>
</ul>
<div id="prev"><a href="#"><img src="img/arrow_prev.png" alt="" /></a></div>
<div id="next"><a href="#"><img src="img/arrow_next.png" alt="" /></a></div>
<div id="goto-list">
<h5>View source for usage.</h5>
<ul id="link-list">
<li id="changeSet"><a href="#">Load new set of images</a></li>
</ul>
</div>
<div id="spinner"><img src="img/spinner.gif" alt="" /></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.imagemax.js"></script>
<script>
$('#bg').imagemax({
speed: 1100,
preloader: '#spinner',
thumbList: '#thumbs1',
prevButton:'#prev',
nextButton:'#next',
beforeLoad: onBeforeLoad
});
$('#changeSet').click(function(e){
$('#bg').imagemax('newImageSet', ['img/bg5.jpg','img/bg6.jpg','img/bg7.jpg','img/bg8.jpg'], '#thumbs2');
$('#thumbs1').fadeOut();
$('#thumbs2').fadeIn();
e.preventDefault();
});
function onBeforeLoad(e){
//handles highlighting of thumbnails
$('#thumbs1').find('.active').removeClass('active');
$('#thumbs1 li').eq(e.index).addClass('active');
//
$('#thumbs2').find('.active').removeClass('active');
$('#thumbs2 li').eq(e.index).addClass('active');
}
</script>
</body>
</html>