I got a comment the other day that read:
'How do I make the menu close without making someone opening a new menu or navigate to a new page, like your "close flyout" link in your second menu example?'
I think that is probably the preferred way. So today I added a 4 second time out for all open menus. If you convert your PSD file again today, your menus will close themselves automatically 4 seconds after opening. They still close immediately if you open another menu however.
The original behavior was that the menus would stay open until you click on a link or another menu. You can get that behavior back by removing 2 lines of code in the generated HTML for each menu. There is a comment in the code to show you what lines to remove.
You can also change how long the menus stay visible before removing themselves. The default is 4000 milliseconds (4 seconds), but you can change that 4000 in the code to whatever you would like.
Thanks to AZSuperman01 for the great suggestion.
--
Shaun