D
Dobedani
Dear All,
I have 2 layers which I want to show alternatively, depending on 2
radio buttons with the name "interval". The 2 layers are defined in a
table:
<td colspan="3" height="84" valign="top">
<div name="decades" id="decades"
style="visibility:visible;position:relative; width:235px; z-index:0;
display:inline;">
etc.
</div>
<div name="months" id="months"
style="visibility:hidden; position:relative; z-index:-1;
width:235px;
display:none;">
etc.
</div>
</td>
I developed some Javascript in addition to the HTML in order to make
the layers swap; the result can be found at:
http://home.wanadoo.nl/dobedani/swaplayers.htm
The code was developed for IE first and works in IE and also in Opera.
I could not avoid using the display property (none / inline) because
otherwise the layers don't overlap. However, it does not work in
Netscape 7.1; I must say I usu. avoid using layers because of this
kind of problems, but I can't here. What am I doing wrong here? Who
can help me please? TIA
Kind regards,
Dobedani
Wageningen
the Netherlands
I have 2 layers which I want to show alternatively, depending on 2
radio buttons with the name "interval". The 2 layers are defined in a
table:
<td colspan="3" height="84" valign="top">
<div name="decades" id="decades"
style="visibility:visible;position:relative; width:235px; z-index:0;
display:inline;">
etc.
</div>
<div name="months" id="months"
style="visibility:hidden; position:relative; z-index:-1;
width:235px;
display:none;">
etc.
</div>
</td>
I developed some Javascript in addition to the HTML in order to make
the layers swap; the result can be found at:
http://home.wanadoo.nl/dobedani/swaplayers.htm
The code was developed for IE first and works in IE and also in Opera.
I could not avoid using the display property (none / inline) because
otherwise the layers don't overlap. However, it does not work in
Netscape 7.1; I must say I usu. avoid using layers because of this
kind of problems, but I can't here. What am I doing wrong here? Who
can help me please? TIA
Kind regards,
Dobedani
Wageningen
the Netherlands