-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.html
81 lines (61 loc) · 2.33 KB
/
gallery.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
<!DOCTYPE html>
<html>
<head>
<!--
New Perspectives on HTML5 and CSS3
Author: Christie Beason
Date: 10/07/2018
Filename: gallery.html
-->
<meta charset="utf-8">
<meta name="keywords" content="" />
<title>Gallery Page</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body background="background.jpg">
<header>
<div class="center">
<br><img src="colored-logo-nlf-large.png" title="" alt="" width="600" height="400">
</div>
<nav>
<ul class="topnav">
<li><a href="index.html">Home</a>
</li>
<li><a href="repairs.html">Repairs</a>
</li>
<li><a href="prices.html">Prices</a>
</li>
<li><a href="gallery.html" class="active">Gallery</a>
</li>
<li><a href="aboutus.html">About Us</a>
</li>
</ul>
</nav>
</header>
<div>
<script type="text/javascript">
var picPaths = ["BlueScreen.jpg","Desktop2.jpg","insideOfDesktop.jpg","MemoryWireless.jpg", "Computer Screen (5).jpg", "Computer Screen (7).jpg", "Laptop.jpg","Desktop.jpg","Monitor.jpg","Desktop 3.jpg","SmartPhone.jpg","Printer.jpg", "Tablet.jpg"];
var curPic = -1;
//preload the images for smooth animation
var imgO = new Array();
for(i=0; i < picPaths.length; i++) {
imgO[i] = new Image();
imgO[i].src = picPaths[i];
}
function swapImage() {
curPic = (++curPic > picPaths.length-1)? 0 : curPic;
imgCont.src = imgO[curPic].src;
setTimeout(swapImage,2000);
}
window.onload=function() {
imgCont = document.getElementById('imgBanner');
swapImage();
}
</script>
<div><br><br><br>
<img id="imgBanner" src="" alt="" width="900" height= "600" class="center" style="border:5px solid black"/>
</div>
</div>
</body>
</html>