-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgallery.html
More file actions
39 lines (31 loc) · 1.74 KB
/
gallery.html
File metadata and controls
39 lines (31 loc) · 1.74 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
<html>
<head>
<title>GALLERY APPLICATION</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<center>
<span><img onClick="displayImage(this)" src="images/3.jpg"class="img-thumbnail rounded-circle img-fluid" width="214px" height="120px"></span>
<span><img onClick="displayImage(this)" src="images/4.jpg"class="img-thumbnail rounded-circle img-fluid" width="214px" height="120px"></span>
<span><img onClick="displayImage(this)" src="images/5.jpg"class="img-thumbnail rounded-circle img-fluid" width="214px" height="120px"></span>
<span><img onClick="displayImage(this)" src="images/benz.jpg"class="img-thumbnail rounded-circle img-fluid" width="214px" height="120px"></span>
<span><img onClick="displayImage(this)" src="images/ferrari.jpg"class="img-thumbnail rounded-circle img-fluid" width="214px" height="120px"></span>
</center>
</div>
<hr>
<center>
<img src="" id="display" class="rounded" width="1100px" height="720px">
</center>
<script type="text/javascript">
//a function to display the clicked image
function displayImage(image ){
document.getElementById('display').src = image.src;
}
</script>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>