-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheaderScriptF.js
More file actions
42 lines (37 loc) · 1.17 KB
/
headerScriptF.js
File metadata and controls
42 lines (37 loc) · 1.17 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
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="indexF.html";}
function loadContactUs(){window.location="contactUsF.html";}
function loadEstimates(){window.location="estimatesF.html";}
function loadInitiatives(){window.location="initiativesF.html";}
function loadUpgradeProgram(){window.location="upgradeProgamF.html"}
function loadImages(num){
document.getElementById("logo").src="tree.png";
document.getElementById("revivedText").src="textF.png";
darkenCurrentButton(num);
}