-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpart2_5.html
More file actions
79 lines (76 loc) · 2.58 KB
/
Copy pathpart2_5.html
File metadata and controls
79 lines (76 loc) · 2.58 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
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Interactive Dropdown Menus</title>
<style>
body {
background-color: darkgrey; /* Dark grey background */
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#container {
width: 50%;
text-align: center;
background-color: pink; /* Dropdown container in pink */
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
position: relative;
}
h2 {
font-weight: bold;
color: white; /* For visibility on dark grey background */
}
.menu-label {
display: block;
margin-top: 20px;
font-weight: bold;
color: white; /* For visibility on dark grey background */
}
select {
margin: 10px;
}
.back-button {
font-weight: bold;
position: absolute;
top: 20px;
left: 20px;
}
</style>
</head>
<body>
<button class="back-button" onclick="window.location.href='homework5.html'">Go Back to Homework 5</button>
<div id="container">
<h2>The Future: Lux Aurum</h2>
<div class="menu-container">
<span class="menu-label">MENU 1</span>
<select id="menu1" onchange="window.open(this.value)">
<option value="http://luxaurum.com">Lux Aurum</option>
<option value="http://luxaurum.com">Option 2</option> <!-- Added for differentiation -->
<option value="http://luxaurum.com">Option 3</option> <!-- Added for differentiation -->
</select>
</div>
<div class="menu-container">
<span class="menu-label">MENU 2</span>
<select id="menu2">
<option value="http://luxaurum.com">Lux Aurum</option>
<option value="http://luxaurum.com">Option 2</option> <!-- Added for differentiation -->
<option value="http://luxaurum.com">Option 3</option> <!-- Added for differentiation -->
</select>
<button onclick="openSelectedUrl()">Go</button>
</div>
<script>
function openSelectedUrl() {
var url = document.getElementById("menu2").value;
window.open(url);
}
</script>
</div>
</body>
</html>