Layer Query regarding Netscape 6
by "Dackral Phillips" <htmlhacker(at)hotmail.com>
|
Date: |
Wed, 26 Apr 2000 17:16:02 CDT |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Hello fellow hackers,
I have a question regarding how Netscape 6 handles layers. I've been
over some developer websites for N6, and haven't seen anything about how it
handles the visibility: hidden style property. I have a javascript reveal
function that right now works for IE 4+ and NN 4, and I would like to
incorporate N6 in this, in the off chance some tech savvy users are using
N6. So far, all I've seen is the ability to hide and reveal things using
display: none/"" property. Does the visibility property work in N6?
Below is the reveal function I'm using, any ideas as to how to modify it to
get my layers to show in N6? Thanks. Also, I'm on the digest version on
this list so a direct response would be appreciated.
function reveal(genericSubObject)
{
// are they using NN 4?
if (document.layers)
{
visible = 'show';
hidden = 'hide';
subreferencer = document.layers[genericSubObject];
}
// are they using IE?
else if (document.all)
{
visible = 'visible';
hidden = 'hidden';
subreferencer = document.all(genericSubObject).style;
}
if (subreferencer.visibility == visible)
{
subreferencer.visibility = hidden;
}
else
{
subreferencer.visibility = visible;
}
}
Dack
010001000101001101010000010001000101001101010000
1 <>< Dackral Phillips <>< 1
0 http://www.redrival.com/dack 0
0 http://www.auburn.edu/~phillds 1
0 e-mail: htmlhacker(at)hotmail.com 0
1 CHRISTIANITY COMPUTERS LANGUAGE CHESS 1
0 0
010001000101001101010000010001000101001101010000
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA