It depends on the underlying html structure of the menu. The simplest is to use nested lists with the hover(fn,fn) method jQuery provides. hover will trigger the first function when the mouse enters an element, and the second function when it leaves.

Blair

On 11/13/06, Alan Gutierrez <[EMAIL PROTECTED]> wrote:
Using jQuery. First day.

After you've displayed a menu, what event would you recommend to
dismiss the menu?

Should I listen for click and scroll on the document and hide the
menu if it is clicked elsewhere? How do I distinguish between clicks
inside and outside of the menu body. It's been a long time since
I've read through the various event routing strategies of the
different browsers. I'm hoping there is a cross-platform recipe that
is now common knowledge.

For now, I'm adding a cancel link to the menu.

--
Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/
                Think New Orleans - http://thinknola.com/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to