-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheaderScript.js
More file actions
44 lines (39 loc) · 1.18 KB
/
headerScript.js
File metadata and controls
44 lines (39 loc) · 1.18 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
var currentPageButtonNum=0;
function darkenCurrentButton(cNum){
currentPageButtonNum=cNum;
x=document.getElementById("button"+cNum);
x.style.background="black";
x.style.opacity=0.3;
}
function buttonChange(num){
if(num!=currentPageButtonNum){
x=document.getElementById("button"+num);
x.style.background="black";
x.style.opacity=0.3;
y=document.getElementById("button"+currentPageButtonNum);
y.style.background="none";
y.style.opacity=1;
}
}
function changeBack(num){
if(num!=currentPageButtonNum){
x=document.getElementById("button"+num);
x.style.background="none";
x.style.opacity=1;
y=document.getElementById("button"+currentPageButtonNum);
y.style.background="black";
y.style.opacity=0.3;
}
}
function loadHome(){window.location="index.html";}
function loadContactUs(){window.location="contactUs.html";}
function loadEstimates(){window.location="estimates.php";}
function loadInitiatives(){window.location="initiatives.html";}
function loadUpgradeProgram(){window.location="upgradeProgam.html"}
function loadImages(num){
document.getElementById("logo").src="tree.png";
document.getElementById("revivedText").src="text.png";
if(num!=0){
darkenCurrentButton(num);
}
}