Well, ever since I put up that tutorial, readers have been clamoring for a script that produces the same effect in Netscape Navigator. Here it is.
The effect is achieved through toggling layers between visible and non-visible. Where this script goes further is that it just doesn't pop the layer up, it actually produces a scrolling effect.
Right up front, I should tell you that I didn't write this one. The author is Tom Richardson Jr. Tom was one of the first authors to submit to JavaGoodies. He really helped to build the site when it was just getting under way.
So, here it is. Remember, you must be using a Netscape Navigator browser that understands layers (version 4.0 or better).
Yes, yes, I know. I hate the yellow background too. I only put it in there to show the layer and the opening scroll. Before this tutorial is over, you'll know how to lose it altogether or change it to a better color.
There are not two layers. It is only one that, when loaded, only displays a portion of the layer. The onMouseOver effect triggers a function that displays the remainder of the layer.
We'll start with the code for the layer itself and then tackle the two functions.
As you can see, there's only the one layer command. This is all one layer.
I'm really only concerned about the main layer command as everything inside the layer is basic HTML. It's a basic heading created through font flags and then a table containing six cells and six links. The HTML code is quite simple. So, let's look at the LAYER flag:
Next Week: The "For" Loops
Enterprise Development Update
Don't miss an article. Subscribe to our newsletter below.