Hello everybody,
I looked for my problem googling, but I found always similar answers
about layer visualization.
I expose my problem, I have tre layers:
LAYER1
LAYER2
LAYER3
and I need to show/hide the layer I want, but in the way that the
layers below move them upper in the void position.
Es:
LAYER1
LAYER3
No problem with Explorer and Mozilla, using the "display" style setting
it on "block" and "none", I obtain the effect I want.
The real problem is about Netscape 4.x compatibility, I found a script
the simulate the "block" effect, but it's too complex to integrate it
in my application.
But I noticed one thing using the following HTML:
<BODY>
<DIV Name="id1" ID="id1" style="display:show">
LAYER1<BR>
</DIV>
<DIV Name="id2" ID="id2" style="display:show">
LAYER2<BR>
</DIV>
<DIV Name="id3" ID="id3" style="display:show">
LAYER3<BR>
</DIV>
</BODY>
I this way all the three browsers display the layers, but if I
replace "show" with "none", LAYER2 disappears leaving its position to
LAYER3, and it works with Netscape 4.x too!
Actually I'm trying to obtain the same effect using Javascript, but I
still didn't find any solution.
I succeeded to get the reference of the "id2" object with
document.ids.id2, but using:
eval('document.ids.' + element + '.display=none');
it doesn't work, the Javascript console displays "none is not defined.".
Why style="display:none" works and document.ids.id2.display=none
doesn't work?
Thanks in advance for any suggestion! :o)
Bye,
PC
Inviato da www.mynewsgate.net