473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Swapping layers in Netscape 7.1

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
Jul 23 '05 #1
2 1108
Hi Dobedani,

Dobedani wrote:
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: in your page the tables are in div elements.
<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. Kind regards,
Dobedani
Wageningen
the Netherlands


Leave away the z-index, because you don't need it if you use 'visibility' and
everything will work in IE 6.0 Sp1 and Mozilla 1.7. Maybe a negative 'z-index'
is moving your div-element behind the body.

cu, Michael
'good old Europe'
Jul 23 '05 #2
Dear Michael,

Thanks a lot! I have learnt something about layers! You are right that
a negative z-index is causing the layer to disappear in Netscape. Now
I know that the swapping works in IE, Opera and Netscape.

Concerning 'good old Europe': the code will soon appear in a web
application I am developing for an institute of the EU. E-mail me if
you wnat to know more.

Kind regards,
Dobedani
Michael Schmitt <mi****@wel.de> wrote in message news:<cd*************@news.t-online.com>...
Hi Dobedani,

Dobedani wrote: ....
Leave away the z-index, because you don't need it if you use 'visibility' and
everything will work in IE 6.0 Sp1 and Mozilla 1.7. Maybe a negative 'z-index'
is moving your div-element behind the body.

cu, Michael
'good old Europe'

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0...
1
by: Chris Leonard | last post by:
Hi. Can anyone help me please. If the syntax for IE is: document.getElementById(layerID) What if I want to use layers ? document.layers ?????????
6
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of...
3
by: Crimefighter | last post by:
I'm not a javascript guy, but the use of this banner rotator script has given me fits. I know a few causes of the problem thus far, one being the layer tags aren't supported under Netscape 7.1...
3
by: Jeannie | last post by:
Can anyone help me adjust this code so that it works in Netscape 4.x? I have am developing a website for a restaurant and the menu page has menus for lunch and dinner. Two images work as tabs, so...
4
by: PsychoCrow | last post by:
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...
10
by: InvisibleMan | last post by:
Hi, Thanks for any help in advance... Okay, I have the JS listed below that calls for the display of the (DIV) tag... cookie function not included, as don't feel its necessary but you'll get the...
4
by: ashkaan57 | last post by:
Hi, I am using the following code to show/hide part of an html page. It works in Netscape and Firefox but dies in IE: "Error: document.layers is null or not an object" <style> ..noshow {...
2
by: yawnmoth | last post by:
As I understand it, document.layers only works in Netscape 4+ (ie. it doesn't work in any version of Internet Explorer), while document.all only works in Internet Explorer 4+ (ie. it doesn't work...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.