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

Drop Down 2nd Level Menus Not Working


Poster: lloyd_borrett
Dated: Wednesday November 16 2005 - 9:30:07 GMT

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.


Poster: John
Dated: Wednesday November 16 2005 - 14:13:36 GMT

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>.


Poster: John
Dated: Wednesday November 16 2005 - 14:17:21 GMT

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.


Poster: Ruth
Dated: Wednesday November 16 2005 - 16:24:12 GMT

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


Poster: lloyd_borrett
Dated: Wednesday November 16 2005 - 21:05:20 GMT

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.


Poster: Ruth
Dated: Thursday November 17 2005 - 0:40:45 GMT

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