Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:58
Submenus don't scroll with main menu (firefox)
Poster: harm
Dated: Friday January 7 2005 - 13:26:45 GMT
Instead of frames, i made my webpage of absolute positioned layers, for example, my menu-layer is:
Code:
div.menu
{
position: absolute;
top: 5em;
left: 0;
width: 10em;
height: 150%;
}
{
position: absolute;
top: 5em;
left: 0;
width: 10em;
height: 150%;
}
inside the menu-layer i put the milomic-menu:
Code:
<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>
<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:
[/img]
Poster: Ruth
Dated: Friday January 7 2005 - 17:47:52 GMT
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
Industrial Strength JavaScript and DHTML Menus
About Us
Testimonials
Contact Us
Our Distinguished Clients
Investing in Non-Profits
Where Are We
Privacy Policy
Software Licensing Agreement
DHTML JavaScript Menu
Product Information
Page Integration
Quick Reference Guides
Embedding Into a Table or DIV
Purchase
