posted April 22, 2000 12:09 PM
I'm having a few problems with NS seeing that some of the layers that I have are actually objects.
I have show() and hide() that work, I just don't want to have onmouseover=15 hides
so, I tried to create an array that lists all of the layers. Then, a function hides all of those layers and shows only the ones that need be - here is the function:function showSubNav(left,right) {
layername = new Array(layernames are here);
for(i= 0 ; i < 16 ; i++) {
hide(layername[i]);
}
show(left);
show(right);
}
my html code looks like this:
<a href="" onmouseover="showSubNav(layerleft,layerright);">
The layers exist and if my html code looked like this, it would work:
<a href="" onmouseover="show(layerleft); show(layerright); hide(hiddenlayer); hide(morehiddenlayers until done);">
But all that code is extrenious - the show()'s and hide()'s do work though.
So, basically, when I call the showSubNav() function, netscape then kicks back that the first element in the array list is not an object.
But, if I had done it out long hand, it would have worked, so therefore the object does exist.
Ok, I hope that I just made sense.
Thanx.