Layer positioning with visibility
Hi all,
I am working on making a Javascript that would allow me to make a menu tree.
The problem I am running into is that a layer takes up space even when the visibility is set to hidden.
I want the layer to take up zero space when hidden and to take up needed space when visible.
Am I making myself clear?
Can a division have no space when hidden?
Check out what I already have at http://shoutingrock.org/test.htm
Thanks
------------------
My goal in life is found in Phillipians 4:8-9
My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214
Jack Michaelson posted this at 09:08 — 10th April 2000.
He has: 1,733 posts
Joined: Dec 1999
Hi Jim,
I have a suggestion that might solve your problem.
Maybe you should try the tag <nospace> just before you start the new layer.
I'm not sure if every browser accepts it (IE5 does), but hey, at least it's something.
Jack
Shakespeare: onclick || !(onclick)
Jim Shilt posted this at 15:32 — 10th April 2000.
They have: 268 posts
Joined: May 1999
Thanks for the thought.
That didn't help. Still have space for the hidden layers.
Any other thoughts
------------------
My goal in life is found in Phillipians 4:8-9
My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214
RC posted this at 20:36 — 10th April 2000.
They have: 89 posts
Joined: Sep 1999
Take a look at this script:
http://dynamicdrive.com/dynamicindex1/navigate1.htm
maybe you can adapt it to what you are looking for, which I assume is a "collapsable" menu.
[This message has been edited by RC (edited 10 April 2000).]
Vincent Puglia posted this at 01:18 — 11th April 2000.
They have: 634 posts
Joined: Dec 1999
Hi,
Try placing nothing between the div tags. Declare each hidden text as a cell of a global array. Then pass the appropriate cell number to the called functions.
Hope this helps.
Vinny
------------------
GrassBlade: cut&paste javascript
Where the world once stood
the blades of grass cut me still
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.