Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:55

Menu embedded in table, submenus only show sometimes??


Poster: Shelleuk
Dated: Friday January 28 2005 - 13:00:14 GMT

Here's my url

http://www.canfin-ibiza.com

I have an embedded the main menu in a left aligned table cell...

1) the submenus only show sometimes...but mostly not at all..?

2) not all font attributes of Main menu are picked up...font is too small and colour faded...whereas the submenu font style (when you get to see it) is fine...?

Should I be pasting the contents of the menu data file into my html template somewhere, so that it appears on every page instead of linking to it as normal ? If so where exactly?

Here's my main menu code:

Code:
        <td align="left" valign="top" style="copy">   <script>
                  with(milonic=new menuname("Main Menu")){
                  style=menuStyle;
                  top=117;
                  left=130;
                  alwaysvisible=1;
                  orientation="vertical";
                  overfilter="";
                  position="relative";
                  aI("text=Home;url=/index.html;");
aI("text=Canfin;url=/canfin.htm");
aI("text=Ibiza;showmenu=Ibiza;url=/ibiza.htm");
aI("text=Gallery;url=/gallery.htm;");
aI("text=Getting there;showmenu=Getting there;url=/getting_there.htm");
aI("text=Reservations;url=/reservations.htm;showmenu=Reservations");
aI("text=Contact;url=/contact.htm;");
                  }
                  drawMenus();      
                  </script></td>


Here's my menu data file:

Code:
__menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=0              // Sub menu top offset
_subOffsetLeft=5            // Sub menu left offset



with(menuStyle=new mm_style()){
onbgcolor="#CCDBE3";
oncolor="#006666";
offbgcolor="#ffffff";
offcolor="#931463";
padding=8;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="#97135e";
pagebgcolor="#FFDFBF";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90)";
outfilter="randomdissolve(duration=0.3)";
}

with(milonic=new menuname("Ibiza")){
style=menuStyle;
aI("text=Local Facilities;url=/local.htm;");
aI("text=Beaches;url=/beaches.htm;");
aI("text=Where to eat;url=/eating.htm");
aI("text=Activities;url=/activities.htm;");
aI("text=Nightlife;url=/nightlife.htm;");
aI("text=Sightseeing;url=/sights.htm;");
}

with(milonic=new menuname("Getting there")){
style=menuStyle;
aI("text=From the UK;url=/from_uk.htm;");
aI("text=From the Mainland;url=/from_mainland.htm;");
aI("text=From North America;url=/from_us.htm;");
aI("text=Car Rental;url=/car_rental.htm;");
}

with(milonic=new menuname("Reservations")){
style=menuStyle;
aI("text=Prices;url=/prices.htm;");
aI("text=Availability;url=/availability.htm;");
aI("text=Book now;url=/book.htm;");
aI("text=Car Rental;url=/car_rental.htm;");
aI("text=House information;url=/houseinfo.htm;");
aI("text=Terms & Conditions;url=/terms.htm;");
}

drawMenus();


Poster: Ruth
Dated: Friday January 28 2005 - 20:59:23 GMT

Hi Michelle,
The call for the files is in the head. Try putting them the first thing after the body tag. They should be the first thing after the body tag especially when putting the menu in a table.
shelleuk wrote:
2) not all font attributes of Main menu are picked up...font is too small and colour faded...whereas the submenu font style (when you get to see it) is fine...?


Your menu data file shows fontsize="75%", so the browsers will show the size as 75% of whatever is set, at least IE will as it should. If you want to have a fixed size you need to code it as a absolute value fontsize=11; or "11px"; Note there are no quotes if it's just a number and quotes if it contains anything else.

Ruth


Poster: Shelleuk
Dated: Friday January 28 2005 - 21:07:50 GMT

Thanks Ruth - I worked this out this afternoon... after much head banging !