/
goto.html
70 lines (59 loc) · 1.72 KB
/
goto.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
<!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>
<ul id="link-list">
<li id="one"><a href="#">Go to image 1</a></li>
<li id="two"><a href="#">Go to image 2</a></li>
<li id="three"><a href="#">Go to image 3</a></li>
<li id="four"><a href="#">Go to image 4</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,
transition: 'slide',
slideType: 'vertical',
preloader: '#spinner'
});
$('#one').click(function(e){
e.preventDefault();
$('#bg').imagemax('goTo' ,0);
});
$('#two').click(function(e){
e.preventDefault();
$('#bg').imagemax('goTo' ,1);
});
$('#three').click(function(e){
e.preventDefault();
$('#bg').imagemax('goTo' ,2);
});
$('#four').click(function(e){
e.preventDefault();
$('#bg').imagemax('goTo' ,3);
});
</script>
</body>
</html>