I'm testing a new Iframe menu for my website. I have everything working except the dropdown part of the menu. If you look at the menu file here: http://12.218.126.198/js/menu.html, you can see that the dropdown menu is working. I've placed the iframe in the page via the following: <iframe id="iframe1" src="js/menu.html" width="750" height="30" scrolling="no" frameborder="0" style="overflow:visible; margin-left:25px" marginheight="0" marginwidth="0"></iframe> Code (markup): You can look at the test page it's in here: http://12.218.126.198/index4.html My question is: How can I get the dropdown parts of the menu to display with the iframe?
You need to use a php include or similar instead of an iframe. The dropdowns are working, they are just working within the frame. Turn your homepage index4.html into a php file by renaming it index4.php. Then, where you have the iframe code, remove it and put a php include instead like this: <?php include("menu.html"); ?> and it should work like a charm Edit: This will actually pull the code from the menu and insert it into your "main" file dynamically rather than displaying it in a (i)frame. NOTE: Because of this, you will need to remove the <html><header> etc etc from the menu.html file. You JUST want the menu code in there, nothing else, or else it will conflict with the tags in your main page. -Phil