-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (57 loc) · 1.97 KB
/
index.html
File metadata and controls
66 lines (57 loc) · 1.97 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<section class="sec">
<header>
<a href="#"><img src="logo.png" class="logo"></a>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Product's</a></li>
<li><a href="#">What's New</a></li>
<li><a href="#">Newsletter</a></li>
<li><a href="#">Contact</a></li>
</ul>
</header>
<div class="content">
<div class="textBox">
<h2>That's What <br><span> I Like</span></h2>
<p>Lorem ipsum dolor, sit amet consectetur
adipisicing elit. Ratione repellat sunt natus
nemo voluptas recusandae dolor aliquam itaque
quisquam non totam eaque expedita et fuga,
impedit consectetur corporis vero eum?</p>
<a href="#">View all Products</a>
</div>
<div class="imgBox">
<img src="pepsi001.png" class="pepsi">
</div>
</div>
<ul class="thumb">
<li><img src="pepsi001.png" onclick="imgSlider('pepsi001.png');changeBgColor('#0062be')"></li>
<li><img src="pepsi002.png" onclick="imgSlider('pepsi002.png');changeBgColor('#e60c2c')"></li>
<li><img src="pepsi003.png" onclick="imgSlider('pepsi003.png');changeBgColor('#1e1e1e')"></li>
</ul>
<ul class="sci">
<li><a href="#"><img src="facebook.png"></a></li>
<li><a href="#"><img src="twitter.png"></a></li>
<li><a href="#"><img src="instagram.png"></a></li>
</ul>
</section>
<script type="text/javascript">
function imgSlider(anything){
document.querySelector('.pepsi').src = anything;
}
function changeBgColor(color)
{
const sec = document.querySelector('.sec');
sec.style.background = color;
}
</script>
</body>
</html>