Friends,
Thanks for being here! I am pretty new to all this ...
I want to avoid people having to scroll on my website to see the content.
Therefore I am using 4 layers overlapping each other so you can see all "pages".
I am trying to use onclick to change the z-index value of the clicked layer to be the highest so it moves to the top and can be read (and setting the other pages z-index to lower values of course).
Here is an example:
<div id="layer1" onclick"documen t.getElementByI d('layer1').sty le.zindex='20'" </div>.
Nothing happens when I click - or at least not what I expected ...:)
I think I am doing something wrong in <script> but I don't get it.
Anyone with a good example or a better way to do it?
Grateful for your suggestions!
Best wishes
Thanks for being here! I am pretty new to all this ...
I want to avoid people having to scroll on my website to see the content.
Therefore I am using 4 layers overlapping each other so you can see all "pages".
I am trying to use onclick to change the z-index value of the clicked layer to be the highest so it moves to the top and can be read (and setting the other pages z-index to lower values of course).
Here is an example:
<div id="layer1" onclick"documen t.getElementByI d('layer1').sty le.zindex='20'" </div>.
Nothing happens when I click - or at least not what I expected ...:)
I think I am doing something wrong in <script> but I don't get it.
Anyone with a good example or a better way to do it?
Grateful for your suggestions!
Best wishes
Comment