newmediaguy
Programmer
Hi Guys
Level 1 Link
Level 2 link
the menu works as follows:
Level1
Level2 ----> Shows Second Level
-----> Shows 3rd level but hides 2nd level
any thoughts?
Thanks
Glen
Glen
Conception | Execution
Code:
var cur_lyr; // holds id of currently visible layer
function swapLayers(id) {
if (cur_lyr) hideLayer(cur_lyr);
showLayer(id);
cur_lyr = id;
}
function showLayer(id) {
var lyr = getElemRefs(id);
if (lyr && lyr.css) lyr.css.visibility = "visible";
}
function hideLayer(id) {
var lyr = getElemRefs(id);
if (lyr && lyr.css) lyr.css.visibility = "hidden";
}
function getElemRefs(id) {
var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
if (el) el.css = (el.style)? el.style: el;
return el;
}
Code:
<a href="javascript://" onclick="swapLayers('S0'); return false; ">Statpack</a>
Code:
<a href="javascript://" onclick="showLayers('Statpack'); return false">By Park/Group</a>
the menu works as follows:
Level1
Level2 ----> Shows Second Level
-----> Shows 3rd level but hides 2nd level
any thoughts?
Thanks
Glen
Glen
Conception | Execution