if i recall correctly, visibility just makes it invisible, but keeps the element still expanded (so it takes up space, and just leaves a blank white spot when ="hidden")
i suggest using a css/js combo, like doing:
Code:
document.getElementById(_w).style.display=''; //Reveals
document.getElementById(_w).style.display='none'; //Hides
And then in each element in the html part, just add a style="display:none;" so that when they first come to the page they'll all be hidden (or leave out whatever u want default displayed, etc).
but basically display will collapse the hidden ones while visibility will just make it... white.
ps: you use null ('') to reveal it because IE screams if you put 'visible'. the '' just overrides the 'none' and so it still shows up.
|