Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #198

With the PopMenu Magic (PMM) system is there a way to have the menu operational while the page is waiting for other assets (Flash, images, preloads) to load?

The Answer

Prepared Oct. 2006 by Gerry Jacobsen, PVII

The normal deployment for the PopMenu Magic system is to initialize the menu after all of the page assets have loaded. If your page is very large, or has long load times caused by many image preloads, large Flash objects or just very many images, you can get the menu working before the complete page has loaded making the menu fully functional while the other assets are still being loaded.

Here' how:

1. Remove the body onLoad handler for PMM, (write down what it says because you will need it later). As an example, you would change this:

<body onload="P7_initPM(0,0,1,-20,1)">
  

to this:

<body> 
 

2. Then look for the last ending </ul> tag in the menu markup. Make a new line after the ending </ul> and insert this code:

<script type="text/JavaScript">
<!--
P7_initPM(0,0,1,-20,1);
//-->
</script>

so that it looks like this:

..... </ul>

<script type="text/JavaScript">
<!--
P7_initPM(0,0,1,-20,1);
//-->
</script>

3. Adjust the arguments inside the parentheses to match your original PMM body onLoad handler.

Note: If you are uisng the BreadCrumb Builder on the page then you must assure that the above JavaScript block appears after any of the BreadCrumb divs in the page markup.

That's it, now the menu will become functional before the rest of the page loads.

Back to the questions list