layout still messed up

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Drieske1982
Advanced
Advanced
Posts: 10
Joined: Thu Feb 05, 2004 4:35 pm

layout still messed up

Post by Drieske1982 »

Hey,
If you look at this site (http://www.aendekerk.be/beta); you'll probably see this (upper right corner):
Image
This is how it should be:
Image

Most of the time, the layout is correct. But not always. When i press refresh, the browser often corrects this. How can i fix this?

This is the code i use:
*************
with(aendekerk=new menuname("Main Menu")){
style=menuStyle;
top=155;
left=200;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=Over ons bedrijf;url="+path+"bedrijf/index.html;showmenu=bedrijf;status=Alles over Aendekerk b.v.b.a;itemwidth=100;");
aI("text=Airconditioning;url="+path+"airco/index.html;showmenu=airco;status=Airconditioning;itemwidth=92;");
aI("text=Koel- en vriescellen;url="+path+"koelvriescel/index.html;showmenu=koelvriescel;status=Koel- en vriescellen;itemwidth=120;");
aI("text=Wijnkoeling;url="+path+"wijnkoeling/index.html;showmenu=wijnkoeling;status=Wijnkoeling;itemwidth=76;");
aI("text=Koele berging;url="+path+"koeleberging/index.html;showmenu=koeleberging;status=Koele berging;itemwidth=88;");
aI("text=Contacteer ons;url="+path+"bedrijf/contactgegevens.html;status=Contacteer ons;itemwidth=86;");
aI("text=MovingCool;url="+path+"bedrijf/movingcool.html;status=Wij verhuren ook Biertapwagens, Koel- en vriesboxen, Koel- en vriesaanhangwagens;itemwidth=66;");
}

drawMenus();
*************

I use Milonic menu 5.04
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

First thing I might try is removing top=155; and left=200; because if the menu is positioned relative to a table cell, there should be no need for these settings and they may possibly be influencing placement. Just a first guess really.

Kevin
Drieske1982
Advanced
Advanced
Posts: 10
Joined: Thu Feb 05, 2004 4:35 pm

Post by Drieske1982 »

I've removed it, but it doesn't really fix the problem.
But i think the error appears less often now...
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Have you tried menuwidth=?
Drieske1982
Advanced
Advanced
Posts: 10
Joined: Thu Feb 05, 2004 4:35 pm

Post by Drieske1982 »

This is my current code (with 'menuwidth' inserted and with 'top' and 'left' removed). But my problem is still there. If you remove your 'temporary internet files' and then visit my site, there's a big chance the error occurs.

*************
with(aendekerk=new menuname("Main Menu")){
menuwidth="638";
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=Over ons bedrijf;url="+path+"bedrijf/index.html;showmenu=bedrijf;status=Alles over Aendekerk b.v.b.a;itemwidth=100;");
aI("text=Airconditioning;url="+path+"airco/index.html;showmenu=airco;status=Airconditioning;itemwidth=92;");
aI("text=Koel- en vriescellen;url="+path+"koelvriescel/index.html;showmenu=koelvriescel;status=Koel- en vriescellen;itemwidth=120;");
aI("text=Wijnkoeling;url="+path+"wijnkoeling/index.html;showmenu=wijnkoeling;status=Wijnkoeling;itemwidth=76;");
aI("text=Koele berging;url="+path+"koeleberging/index.html;showmenu=koeleberging;status=Koele berging;itemwidth=88;");
aI("text=Contacteer ons;url="+path+"bedrijf/contactgegevens.html;status=Contacteer ons;itemwidth=86;");
aI("text=MovingCool;url="+path+"bedrijf/movingcool.html;status=Wij verhuren ook Biertapwagens, Koel- en vriesboxen, Koel- en vriesaanhangwagens;itemwidth=66;");
}

drawMenus();
*************
Post Reply