[thelist] Show hide <div>

.jeff jeff at members.evolt.org
Sun Jan 5 17:07:05 CST 2003


> From: fstorr
> By a spooky coincidence, this is just what I was looking
> for in a menu system.  I understand everything except
> how current_menu thing works through the function.
> Could you possibly explain?

well, current_menu starts out as a null value.  whenever a menu is shown,
current_menu is set to the id of the menu that's being shown.  then, next
time a menu is displayed, the function checks to see if there's a menu
already being shown.  if so, it hides it.  if the menu to be shown is
different than current_menu, then that menu is displayed.  if the
current_menu and the menu that's to be toggled are the same that means the
menu is already open.  so, close it and set current_menu back to null.

did that make sense?


jeff at members.evolt.org

More information about the thelist mailing list