Menu embedded in table, submenus only show sometimes??

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Shelleuk
Advanced
Advanced
Posts: 22
Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:

Menu embedded in table, submenus only show sometimes??

Post by Shelleuk »

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: Select all

        <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: Select all

__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();
Michelle Cannon
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Shelleuk
Advanced
Advanced
Posts: 22
Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:

Post by Shelleuk »

Thanks Ruth - I worked this out this afternoon... after much head banging !
Michelle Cannon
Post Reply