View Full Version : Netscape layers
11-03-2002, 02:56 AM
Can someone remind me how to acess div's or span's as layers in NS 4? Do you just set the position style to absolute or relative or what?
11-03-2002, 07:03 PM
must have an id and position absolute:
<div id="lyr" style="position:absolute;left:10;top:10">
Then it can be referenced as: document.layers['lyr']
and the style attibutes are referenced as:
11-03-2002, 11:45 PM
"must have an id and position absolute: "
Well you can set position:relative, and it'll be treated as an ilayer.
ID is optional too, but then you have to access the layers via its index in the layers array document.layers[x], where x is the index beginning with zero.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.