Using Expandable Outlines in Netscape

Question:
I’ve written a page that uses expandable outlines using the display property of SPAN objects and it works fine in Internet Explorer 4. However, Netscape does not seem to use this property of SPAN objects. Is there any way to use expanding outlines in Netscape 4?

Answer:
Expandable outlines from Netscape are considerably more complex than they are in DHTML, for a number of reasons. For starters, whereas with Internet Explorer 4.0 every object can accept events, with Netscape this functionality is limited severely to layers, with only a marginal amount of support for DIVs and none, as far as I’m aware of, for SPANs. As a consequence, building a dynamic outline can be well near impossible without the use of Java.

The second limitation you face is that Netscape doesn’t support the notion of visibility with such containers, nor does it support the concept of the display: attribute, which can take a hidden value and remove the object from the rendering stream. The reason for this has to do with a choice Netscape made in development some time back, and is now paying for dearly by having to rewrite their rendering engine:

The object model for Netscape Navigator is fundamentally static?once an object is rendered on the page, the render buffer remains fixed. In a few cases, you can actually go into Navigator and write contents into a layer, but only because layers have been defined as having their own architecture separate from the rest of the elements on the page. As a result, about the only way that you might be able to create expanding properties would be to use embedded LAYERS, maintain the outline in a separate data structure, then write or clear an entry when it receives a mouse click.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS