-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphotos0.html
40 lines (33 loc) · 1.8 KB
/
photos0.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Very Simple jQuery Photo Gallery version 0</title>
<link rel="stylesheet" href="css/style0.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"> </script>
<script src="scripts/photos0.js"> </script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"> </script>
<![endif]-->
</head>
<body>
<h1>Photos and Thumbnails v.0</h1>
<p>Click thumbnails to view larger photos. This is not perfect, because when we
move an element in the DOM, we really <em>move</em> it -- it no longer exists in
the place where it is in the HTML file. In other words, once you have clicked a
thumbnail image one time, the big photo is moved to a new location. When you
click another thumbnail image, that big photo is removed from the DOM. Study the
JavaScript until this is clear to you.
Then view <a href="photos1.html">version 1</a>, which fixes the problem.</p>
<ul id="pics">
<li><img class="big" src="photos/batik1.jpg"> <img class="thumb" src="photos/thumb_batik1.jpg"></li>
<li><img class="big" src="photos/batik2.jpg"> <img class="thumb" src="photos/thumb_batik2.jpg"></li>
<li><img class="big" src="photos/batik3.jpg"> <img class="thumb" src="photos/thumb_batik3.jpg"></li>
<li><img class="big" src="photos/batik4.jpg"> <img class="thumb" src="photos/thumb_batik4.jpg"></li>
<li><img class="big" src="photos/batik5.jpg"> <img class="thumb" src="photos/thumb_batik5.jpg"></li>
<li><img class="big" src="photos/batik6.jpg"> <img class="thumb" src="photos/thumb_batik6.jpg"></li>
<li><img class="big" src="photos/batik7.jpg"> <img class="thumb" src="photos/thumb_batik7.jpg"></li>
<li><img class="big" src="photos/batik8.jpg"> <img class="thumb" src="photos/thumb_batik8.jpg"></li>
</ul>
</body>
</html>