Sub-menu doesn't stay open in IE

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
deezle
Beginner
Beginner
Posts: 7
Joined: Tue Apr 27, 2004 10:49 pm

Sub-menu doesn't stay open in IE

Post by deezle »

This problem doesn't show in Opera or Mozilla, but in IE 6 (haven't been able to test yet in earlier versions of IE) anything deeper than 2 tiers doesn't stay open.

The example is at http://www.build-survey.com . Start with the Products menu item and go down, try to select one of the items on the third tier. The menu collapses.

Any advice would be greatly appreciated!

NB: Sorry for the slow load, the Flash isn't optimized.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Move this script up under the <body> tag:

Code: Select all


<SCRIPT language=JavaScript src="/Menu/milonic_src.js" type=text/javascript></SCRIPT>
		<script	language=JavaScript>
		if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/Menu/mmenuns4.js><\/scr"+"ipt>");
		  else _d.write("<scr"+"ipt language=JavaScript src=/Menu/mmenudom.js><\/scr"+"ipt>");
		</script>

These things might cause a problem in some browsers:

aI("text=;");
// Sub Menus Style
// Main Menu Style
subimagepadding="2px"; remove the quotes

I'm not sure what this might do:
GrayMenuHeader = "fontsize=11px;fontweight=normal;padding=2px 5px 2px 10px";
BlueMenu = "oncolor=#01669A;offcolor=#01669A;padding=2px 5px 2px 10px";
AdminMenu = "oncolor=#CC3300;offcolor=#CC3300";

maz
deezle
Beginner
Beginner
Posts: 7
Joined: Tue Apr 27, 2004 10:49 pm

Found the problem...

Post by deezle »

I simply had to adhere to the example found at http://milonic.com/menusample.php?sampleid=9 regarding relatively positioned menus. Now it works.

I had put the main menu and all child menus in the menu_data.js file, but the recommendation is to have just the child menu data in the menu_data.js file, and have the main menu (that is relatively positioned) written out on the page where the menu should appear.

Thanks very much for you time in answering my post!
Post Reply