-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathScript.js
More file actions
34 lines (27 loc) · 731 Bytes
/
Script.js
File metadata and controls
34 lines (27 loc) · 731 Bytes
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
function position() {
var x = document.getElementById("child3");
x.scrollLeft = 1000;
}
function change(child, l, w, img, mouseover) {
if (mouseover) {
var x = document.getElementById(child);
x.style.left = l+"%";
x.style.width = w+"%";
x.style.zIndex = "1";
var y = document.getElementById(img);
y.style.width = y.offsetWidth+"px";
var z = document.getElementById("data");
z.style.width = "100%";
}
else {
var x = document.getElementById(child);
x.style.left = l+"%";
x.style.width = w+"%";
x.style.zIndex = "0";
// x.style.zIndex = "0";
var y = document.getElementById(img);
y.style.width = y.offsetWidth+"px";
var z = document.getElementById("data");
z.style.width = "50%";
}
}