-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
49 lines (42 loc) · 1.8 KB
/
script.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const men_section = document.querySelector('.men');
const women_section = document.querySelector('.women');
const kids_section = document.querySelector('.kids');
const home_section = document.querySelector('.homeliving');
const beauty_section = document.querySelector('.beauty');
const men_section_items = document.querySelector('.men-section-items');
const women_section_items = document.querySelector('.women-section-items');
const kids_section_items = document.querySelector('.kids-section-items');
const home_section_items = document.querySelector('.home-section-items');
const beauty_section_items = document.querySelector('.beauty-section-items');
const container_ele = document.querySelector('.container');
var bodyele = document.getElementsByTagName("BODY");
men_section.onmouseover = () => {
men_section_items.classList.remove('visibility');
}
men_section.onmouseout = () => {
men_section_items.classList.add('visibility');
} /* men section ends here */
women_section.onmouseover = () => {
women_section_items.classList.remove('visibility');
}
women_section.onmouseout = () => {
women_section_items.classList.add('visibility');
} /* women section ends here */
kids_section.onmouseover = () => {
kids_section_items.classList.remove('visibility');
}
kids_section.onmouseout = () => {
kids_section_items.classList.add('visibility');
} /* kids section ends here */
home_section.onmouseover = () => {
home_section_items.classList.remove('visibility');
}
home_section.onmouseout = () => {
home_section_items.classList.add('visibility');
} /* home and living ends here */
beauty_section.onmouseover = () => {
beauty_section_items.classList.remove('visibility');
}
beauty_section.onmouseout = () => {
beauty_section_items.classList.add('visibility');
}