Changing the visibility of a layer can be a very useful tool for swapping pages very quickly. There are 2 styles which will do the trick:
display - this will toggle the layer and remove it from the page (the space collapses) but is not supported by older browsers.
visibility - this will make the layer appear and disappear but the space where the layer was remains and this is more widely supported.
------------------------------
Relevant links:
MAX's "Layers as Pages" Demo
------------------------------
Relevant threads:
making layers disappear
DHTML Hide and Unhide onLoad Question
Layer Visibility/onMouseover...
layer visibiltiy help
Visibilety and z-index
Using JavaScript to display/hide a form element?
_______________________
Emperor
(Added by: Emperor on Tue 03-Sep-2002)
(Edited by: Emperor on Thu 05-Sep-2002) |