Women in Technology

Hear us Roar



Article:
  Hierarchical Menus with the Underrated style.display Object
Subject:   About the "exept" trick
Date:   2004-08-05 05:30:48
From:   kravenlust
Instead of making things a lot more complex, adding an additional variable, simply add a line calling the hideAll() function in the function showLevel( _levelId), just before the line that makes thisLevel visible.


What it does is first hiding everything and then making thisLevel visible again. I know it's a dirty trick, but it works well enough for me.