-
Notifications
You must be signed in to change notification settings - Fork 0
/
sc.js
30 lines (26 loc) · 837 Bytes
/
sc.js
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
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 120 || document.documentElement.scrollTop > 120) {
document.getElementById("navbar").style.top = "0";
} else {
document.getElementById("navbar").style.top = "-50px";
}
}
function mouseOver1(){
document.getElementById("hey").innerHTML = "AboutMe";
}
function mouseLeave1(){
document.getElementById("hey").innerHTML = "Hey! I'm";
}
function mouseOver2(){
document.getElementById("first").innerHTML = "Skills";
}
function mouseLeave2(){
document.getElementById("first").innerHTML = "Yagnik";
}
function mouseOver3(){
document.getElementById("second").innerHTML = "Contact";
}
function mouseLeave3(){
document.getElementById("second").innerHTML = "Vamja";
}