-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.js
More file actions
44 lines (33 loc) · 1.26 KB
/
main.js
File metadata and controls
44 lines (33 loc) · 1.26 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
// Find HTML element based off ID
//var caption = document.getElementById("caption");
// Change content of said element
//caption.textContent = "Subscription Plans";
// text in html file
var featuresLink = document.getElementById("featuresLink");
featuresLink.addEventListener("mouseover", function(){
this.style.backgroundColor = "#002859";
});
featuresLink.addEventListener("mouseout", function(){
this.style.backgroundColor = "#0edbb0";
});
var pricingLink = document.getElementById("pricingLink");
pricingLink.addEventListener("mouseover", function(){
this.style.backgroundColor = "#002859";
});
pricingLink.addEventListener("mouseout", function(){
this.style.backgroundColor = "#0edbb0";
});
var contactLink = document.getElementById("contactLink");
contactLink.addEventListener("mouseover", function(){
this.style.backgroundColor = "#002859";
});
contactLink.addEventListener("mouseout", function(){
this.style.backgroundColor = "#0edbb0";
});
var name = document.getElementById("name");
document.getElementById("div1").onmouseover = function() {
document.getElementById("div1").style.fontSize = "125%"
};
document.getElementById("div1").onmouseout = function() {
document.getElementById("div1").style.fontSize = "100%";
};