-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (28 loc) · 928 Bytes
/
index.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
var form1 = document.getElementById("form1");
var form2 = document.getElementById("form2");
var form3 = document.getElementById("form3");
var next1 = document.getElementById("next1");
var next2 = document.getElementById("next2");
var back1 = document.getElementById("back1");
var back2 = document.getElementById("back2");
var progress = document.getElementById("progress");
next1.onclick = function () {
form1.style.left = "-450px";
form2.style.left = "40px";
progress.style.width = "240px";
}
back1.onclick = function () {
form1.style.left = "40px";
form2.style.left = "450px";
progress.style.width = "120px";
}
next2.onclick = function () {
form2.style.left = "-450px";
form3.style.left = "40px";
progress.style.width = "360px";
}
back2.onclick = function () {
form2.style.left = "40px";
form3.style.left = "450px";
progress.style.width = "240px";
}