-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgallery.html
More file actions
67 lines (55 loc) · 1.78 KB
/
gallery.html
File metadata and controls
67 lines (55 loc) · 1.78 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
<!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>
<div id="goto-list">
<h5>View source for usage.</h5>
</div>
<ul id="thumbs">
<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>
<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="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: 1200,
transition: 'slide',
slideType: 'horizontal',
prevButton:'#prev',
nextButton:'#next',
preloader: '#spinner',
thumbList: '#thumbs',
easing: 'easeInOutQuad',
beforeLoad: onBeforeLoad
});
function onBeforeLoad(e){
//handles highlighting of thumbnails
$('#thumbs').find('.active').removeClass('active');
$('#thumbs li').eq(e.index).addClass('active');
}
</script>
</body>
</html>