-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspringmap.js
More file actions
55 lines (48 loc) · 1.46 KB
/
springmap.js
File metadata and controls
55 lines (48 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
54
55
function hidediv(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs[i].id.match(pass)){//if they are 'see' divs
if (document.getElementById) // DOM3 = IE5, NS6
divs[i].style.visibility="hidden";// show/hide
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'hidden';
else // IE 4
document.all.hideshow.divs[i].visibility = 'hidden';
}
}
}
function showdiv(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs[i].id.match(pass)){
if (document.getElementById)
divs[i].style.visibility="visible";
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'visible';
else // IE 4
document.all.hideshow.divs[i].visibility = 'visible';
}
}
}
function SetImage(id) {
if (id == 0)
{
showdiv('spring-geomap');
hidediv('spring-metalmap');
hidediv('spring-heightmap');
}
if (id == 1)
{
showdiv('spring-metalmap');
hidediv('spring-geomap');
hidediv('spring-heightmap');
}
if (id == 2)
{
showdiv('spring-heightmap');
hidediv('spring-geomap');
hidediv('spring-metalmap');
}
}