Drop Down 2nd Level Menus Not Working

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
lloyd_borrett
Advanced
Advanced
Posts: 12
Joined: Thu Jul 01, 2004 8:15 am
Location: Cranbourne North, Victoria, Australia
Contact:

Drop Down 2nd Level Menus Not Working

Post by lloyd_borrett »

G'day,

Today I signed up for another Milonic DHTML Menu license for a new web site I'm building.

You'd think I'd know my way around the thing by now, but for some unknown reason, I just can't get my drop down vertical menus to work. I'm hoping a fresh mind might quickly spot the problem.

Check it out at http://www.chaordent.com/home.htm

Milonic DHTML Menu version: 5.734
Interner Explorer v6 & Mozilla Firefox 1.0.7

About the only thing I'm doing with this web site that I haven't done before is use charset=UTF-8.

Best Regards, Lloyd.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Hi Lloyd -

Put the menu calls back the way they were when you got them; i.e., get rid of the extra \ and " characters.

I have it working by doing only that at http://www.west.asu.edu/sa/testsite/aussie.htm (I didn't link to your images or css).

Also, just FYI, the menu usually doesn't like being cooped up in a <div>.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Oops - scratch all that. I just linked in your 3 css sheets and it's failing again. So - there's a problem in there. Pull them in one at a time until you find the bugger.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

It's having the submenu data in the div tags. If you take them out of the div they work fine. Why exactly do you have that submenu information in the div? They don't show there, they drop below the main menu so there's really no reason to have them in a div that I can see.

Ruth
User avatar
lloyd_borrett
Advanced
Advanced
Posts: 12
Joined: Thu Jul 01, 2004 8:15 am
Location: Cranbourne North, Victoria, Australia
Contact:

Post by lloyd_borrett »

Many thanks Ruth. You were spot on.

You're right, there is no real reason for those <div> tags either. It was just a concept I had to do with having a print CSS file.

I didn't pick that as being the problem, figuring that if one part of the menu worked within those tags, then the whole thing should.

John, those extra " and \ characters crept into my script some time ago when I put a version of the menu through a validation process. You might want to look at making a version with those extra characters your standard version.

Again, many thanks for the assistance.

Best Regards, Lloyd.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You put the menu in a div at your own risk, since not all browsers treat divs the same, usually in regard to position, i.e. relative, absolute, fixed, static etc.

Instead of using the \ /, can't you use cdata tags?

Code: Select all

<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT> 
<script language="javascript" type="text/javascript"> 
//<![CDATA[ 
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");       
  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); 
//]]> 
</script> 
Ruth
Post Reply