On Wednesday 14 October 2009 18:01:46 Christophe Decaux wrote: > I don't know anything what elegant means, but this would be my way to > do it. > I'm your onclick handler, set a flag such as menuIsClicked to true and > in your onMouseOut handler, test that flag before hiding the image. > > On to the pros for the ellegant solution.
On click, show[1] and remove the mouse out listener. I find that quite elegant. Jim [1] Show Because we can't assume a click event means the mouse is already over. iphones etc. -- Jim my wiki ajaxification thing: http://wikizzle.org my blog: http://jimhigson.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---