Hello,

I am trying to use Superfish's onBeforeShow and onHide callback
functions to hide some text when a menu is triggered and the show it
again when the menu disappears:


            onBeforeShow:  function(){
                                $("p.default").fadeOut(1);
                        },
            onHide:        function(){
                                $("p.default").fadeIn(1000);
                        }


onBeforeShow works fine and text is removed before triggering the
menu. However, the onHide function is also triggered and immediately
displays the text again, even though the menu is still displayed.

Adding this statement:

                        onShow:  function(){
                                $("p.default").hide();
                        },

removes the text, but only after the menu has faded in. Any ideas?


Thanks,
Justin


Reply via email to