-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
158 lines (129 loc) · 6.28 KB
/
index.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>FancyBox 1.3.1 | Demonstration</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="./jquery.fancybox.mod_shortcat/jquery.mousewheel-3.0.2.pack.js"></script>
<script type="text/javascript" src="./jquery.fancybox.mod_shortcat/jquery.fancybox-1.3.1.js"></script>
<link rel="stylesheet" type="text/css" href="./jquery.fancybox.mod_shortcat/jquery.fancybox.mod_shortcat.css" media="screen" />
<link rel="stylesheet" href="style.css" />
<script type="text/javascript">
$(document).ready(function() {
/*
* Examples - images
*/
$("a#example1").fancybox({
'padding' : 0,
'overlayOpacity' : 0.8,
'overlayColor' : '#333',
'hideOnOverlayClick' : false,
'centerOnScroll' : true,
'onStart': function() { $("body").addClass('fancybox-active') },
'onClosed': function() { $("body").removeClass('fancybox-active') }
});
$("a#example2").fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
$("a#example3").fancybox({
'titleShow' : false,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
$("a#example4").fancybox();
$("a#example5").fancybox({
'titlePosition' : 'inside'
});
$("a#example6").fancybox({
'titlePosition' : 'over'
});
$("a[rel=example_group]").fancybox({
'padding' : 0,
'overlayOpacity' : 0.8,
'overlayColor' : '#333',
'hideOnOverlayClick' : false,
'centerOnScroll' : true,
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
},
'onStart': function() { $("body").addClass('fancybox-active') },
'onClosed': function() { $("body").removeClass('fancybox-active') }
});
/*
* Examples - various
*/
$("#various1").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'none',
'transitionOut' : 'none',
'width' : 1000,
'autoDimensions' : false
});
$("#various2").fancybox();
$("#various3").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
$("#various4").fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
});
</script>
</head>
<body>
<div id="content">
<h1>fancybox <em>v1.3.1</em></h1>
<p>This is a demonstration. <a href="http://fancybox.net">Home page</a></p>
<hr />
<p>
Different animations - 'fade', 'elastic' and 'none'<br />
<a id="example1" href="./example/1_b.jpg"><img alt="Firefox 3.6 offers support for new and developing web standards, increased performance, and an overall better experience for web users and developers. This page provides links to articles covering the new capabilities of Firefox 3.6." src="./example/1_s.jpg" /></a>
<a id="example2" href="./example/2_b.jpg"><img alt="example2" src="./example/2_s.jpg" /></a>
<a id="example3" href="./example/3_b.jpg"><img alt="example3" src="./example/3_s.jpg" /></a>
</p>
<p>
Different title positions - 'outside', 'inside' and 'over'<br />
<a id="example4" href="./example/4_b.jpg" title="Lorem ipsum dolor sit amet"><img alt="example4" src="./example/4_s.jpg" /></a>
<a id="example5" href="./example/5_b.jpg" title="Cras neque mi, semper at interdum id, dapibus in leo. Suspendisse nunc leo, eleifend sit amet iaculis et, cursus sed turpis."><img alt="example5" src="./example/5_s.jpg" /></a>
<a id="example6" href="./example/6_b.jpg" title="Sed vel sapien vel sem tempus placerat eu ut tortor. Nulla facilisi. Sed adipiscing, turpis ut cursus molestie, sem eros viverra mauris, quis sollicitudin sapien enim nec est. ras pulvinar placerat diam eu consectetur."><img alt="example6" src="./example/6_s.jpg" /></a>
</p>
<p>
Image gallery (ps, try using mouse scroll wheel)<br />
<a rel="example_group" href="./example/7_b.jpg" title="Lorem ipsum dolor sit amet"><img alt="" src="./example/7_s.jpg" /></a>
<a rel="example_group" href="./example/8_b.jpg" title=""><img alt="" src="./example/8_s.jpg" /></a>
<a rel="example_group" href="./example/9_b.jpg" title=""><img alt="" src="./example/9_s.jpg" /></a>
</p>
<p>
Various examples
</p>
<ul>
<li><a id="various1" href="#inline1" title="Lorem ipsum dolor sit amet">Inline</a></li>
<li><a id="various2" href="ajax.txt">Ajax</a></li>
<li><a id="various3" href="http://google.ca">Iframe</a></li>
<li><a id="various4" href="http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf">Swf</a></li>
</ul>
<div style="display: none;">
<div id="inline1" style="width:400px;height:100px;overflow:auto;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis id et neque. Nulla sit amet sem sapien. Vestibulum imperdiet porta ante ac ornare. Nulla et lorem eu nibh adipiscing ultricies nec at lacus. Cras laoreet ultricies sem, at blandit mi eleifend aliquam. Nunc enim ipsum, vehicula non pretium varius, cursus ac tortor. Vivamus fringilla congue laoreet. Quisque ultrices sodales orci, quis rhoncus justo auctor in. Phasellus dui eros, bibendum eu feugiat ornare, faucibus eu mi. Nunc aliquet tempus sem, id aliquam diam varius ac. Maecenas nisl nunc, molestie vitae eleifend vel, iaculis sed magna. Aenean tempus lacus vitae orci posuere porttitor eget non felis. Donec lectus elit, aliquam nec eleifend sit amet, vestibulum sed nunc.
</div>
</div>
<p>
Ajax example will not run from your local computer and requires a server to run.
</p>
<p>
Photo Credit: <a href="http://www.flickr.com/people/kharied/">Katie Harris</a>
</p>
</div>
<div><p> </p></div>
</body>
</html>