Thanks Joel, you rock.

I ended up going with
$(document).ready(function() {
            $('ul.nav').superfish().click(function(){
                $(this).find("ul").hide();
            });
        });

So the original menu is still there, sometimes new items open in a new
window, so I didn't want it to hide for good. This with hoverintent
makes superfish feel very responsive. I highly recommend it.



On Jul 2, 1:04 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> How about this - or something very like it:
>
> $(document).ready(function() {
>     $('ul.nav').superfish().click(function(){
>         $(this).hide();
>     });
>
> });
>
> I guess clicking anywhere in the nav is suitable. Might not need to
> attach the click handler to the links really. You may want to
> experiment with .css('visibility','hidden') instead of hide() as the
> latter could make other page elements move around disconcertingly.
>
> Joel Birch.

Reply via email to