Hi,
I never noticed you are way down level on the menu. Download the newest version 5.770. It gives you the regular dhtml menu, so don't unzip to your working folder. Make sure you put the 3 files you are now working with someplace to back them up in case you need to go back to that level.
Then you need to also download the newest treemenu.js file. Again, make sure you don't overwrite what you have in case you have to go back.
http://milonic.com/menumodules.php
The treemenu is about the middle of the page.
Once you have the newest files, go back to your collapse data file and put the main menu back in it. Leave the position='relative'; and don't leave the drawMenus with the main menu. Just the one that's at the end of the file.
Then at the top, right below the line
_
Code: Select all
subOffsetLeft=0; // Sub menu offset Left position
put this line
buildAfterLoad=true;
Then on your page, put the calls for all the files into the table cell where you want the menu to appear.
Code: Select all
<TD vAlign=top align=middle width=210 bgColor=#ffdb74>
<SCRIPT language=JavaScript src="milonic_src.js"
type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
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>
<SCRIPT language=JavaScript src="collapse_test.js"
type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="treemenu.js"
type=text/javascript></SCRIPT>
</TD>
That should fix it.
As a note, you shouldn't put the collapse menu into a table cell unless that cell is longer than the menu when the longest submenu is opened. If you do, then when you click that long submenu it will force the table cell to expand downward and probably would make your layout look strange.
Ruth