Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

layers and current browsers

Feb 19, 2005 3:53AM PST

I am a web developer. I was working on layers a couple of years ago and they seemed to working good. I had some examples and created a few versions using layers myself, like moving over a layer and having color change or size change. Recently I went back to my layers examples because I thought my may have a use for layers on a web site I am working on. I tried my old examples and nothing works. I was using Netscape 7.1, realizing IE doesn't support layers. I wonder you the newer Ver. of Netscape just doesn't support layers anymore?
I tried going back to basics and I just can't make any layer do anything. Like changing size or color of a
Layer like the following 2 lines: layer.document.layers["eventchoice1"].left ='38';
or
document.layers["eventchoice1"].bgColor ='#00ff33';

Using a function call in a link for instance.
<LAYER id="eventchoice1" NAME="eventchoice1" bgcolor="red" height=19 width="100" LEFT=3 TOP=10 clip="125, 19" onMouseOver="lchange()">
<A HREF="somesite.com"> hello layer is then working</a> </LAYER>
Where the Javascript function call lchange() contains the above size and color value change lines. Java script is in the head in the script tag.
I then also try external CSS file and no dice.

I am a web designer with a 4 year decree. I realize the smallest error or conflicting variables can make it just not work, but I tried everything. It is only a simple script.

Any suggestions? Or suggestions on where to get good references. But a solution to my problem would be great.
Anyone.

Discussion is locked