W3C home > Mailing lists > Public > www-html@w3.org > June 2000

Re: hiding and showing layers in IE???

From: Seung Chan Lim <info@djslim.com>
Date: Fri, 30 Jun 2000 01:33:13 -0400
Message-ID: <002701bfe254$b1de9d70$0100a8c0@djslim>
To: <www-html@w3.org>
Probably not the right mailing list, but . . .
Netscape uses its own proprietery tag called "layers", but IE uses "div"s
and
the way you reference it is by referencing the document.all collection.
document.all["layername"] and you can access its style property like this:
document.all["layername"].style.visibility

slim

> 1) How can I show and Hide multiple layers in IE.  I keep getting an
error.
> But with Netscape there's no errors and works fine.
> 2) Why can't I do this in IE with javascript? This works in Netscape.
>
>
> eg.
> <style type="text/css">
> <!--
> # layer1 { position: absolute; etc....
> }
> -->
>
> and in an eventhandler....
>
> document.layer1.visibility = "hide";
>
>
>
> regards,
> Chau
>
>
Received on Friday, 30 June 2000 01:33:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:43 GMT