z:index is just if you want the layer to be positioned above another layer. Anyhow here is some code.
The layer:
The javascript:
You should probably do this in a more object oriented way. If youre interrested I have the code.
onload in body
[This message has been edited by Mathias P.W Nilsson (edited September 10, 2001).]