Submenus don't scroll with main menu (firefox)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
harm
Beginner
Beginner
Posts: 3
Joined: Fri Jan 07, 2005 1:15 pm

Submenus don't scroll with main menu (firefox)

Post by harm »

Instead of frames, i made my webpage of absolute positioned layers, for example, my menu-layer is:

Code: Select all

div.menu
  {
  position: absolute;
  top: 5em;
  left: 0;
  width: 10em;
  height: 150%;
  }
inside the menu-layer i put the milomic-menu:

Code: Select all

<div class="menu">
 <table>
   <td>
      <script>
         with(milonic=new menuname("Main Menu")){
         style=menuStyle;
         alwaysvisible=1;
         orientation="vertical";
	 position="relative";
	 aI("text=Home;");
         aI("text=Alpha;showmenu=Alpha;");
         aI("text=Bèta;showmenu=Bèta;");
         aI("text=ICT;showmenu=ICT;");
         aI("text=Gastenboek;url=Gastenboek/;");
         aI("text=Links;url=Links/;");
	 aI("text=Verlanglijst;url=Verlanglijst/;");
	 aI("text=Contact;url=Contact/;");
         }
         drawMenus();
      </script>
   </td>
</table>
</div>
but when i scroll, the menu stays at exactly the same position, but the submenus don't.
How can i get this fixed?
Here some images, to clearify what i mean:
Image
Image
Image[/img]
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

It's because you have the menu in a div. You'll have to get it out of that and it will function fine. I noticed you mentioned using the div instead of frames, have you considered using an iframe? There is a sample showing the menu opening pages in an iframe.

I removed the other topic, it's the same cause, the menu in the div.

Ruth
Post Reply