Search code examples
asp.netaspmenu

Asp.net Menu Control - Dynamic menus show on page load


I have an Asp.Net Menu control that displays across the top of our page. When the page is loaded, all the dymanic menus (the ones that fly out on mouseover) display until the page finishes loading, and then hide. Once the page finishes loading, they hide and behave as they should, but they are displayed until loading is complete.

Anyone have any suggestions on why this is happening or how to get it to stop?


Solution

  • Hide the menu with your css display:none and then use jquery to display it:

    $(document).ready(function() {
    $(yourclass/idhere).toggle();
    });