I am having trouble getting the screenposition menu attribute to work for my main menu.
The url is:
http://www.citytech.cuny.edu/m-menu5.html
The problem is that the menu does not center The other strange problem is that ittermittantly, when the page is loaded, the menu extends 100% across the width of the screen, even though itemwidths are explicitly stated in the code. This happens in IE 6. Not sure about other browsers. But it doesn't happen all the time - (sort of like symptoms disappearing when you go to the doctor) so you may not see it...
The code for the main menu is:
Code: Select all
with(milonic=new menuname("Main Menu")){
style=mainStyle;
alwaysvisible=1;
orientation="horizontal";
itemwidth="82";
position="relative";
screenposition="center";
aI("text=About Us;url=http://www.citytech.cuny.edu/aboutus/index.html;status=About Us;showmenu=About;itemheight=18;align=center;");
aI("text=Academics;url=http://www.citytech.cuny.edu/academics/index.html;status=Academics;showmenu=Academics;itemheight=18;align=center;");
aI("text=Admissions;url=http://www.citytech.cuny.edu/admissions/index.html;status=Admissions;showmenu=Admissions;itemheight=18;align=center;");
aI("text=Alumni;url=http://www.citytech.cuny.edu/alumni/index.html;status=Alumni;itemheight=18;align=center;");
aI("text=Faculty/Staff;url=http://www.citytech.cuny.edu/faculty/index.html;status=Faculty/Staff;showmenu=Faculty;itemheight=18;itemwidth=83;align=center;");
aI("text=Students;url=http://www.citytech.cuny.edu/students/index.html;status=Students;showmenu=Students;itemheight=18;align=center;");
aI("text=Search;url=http://www.citytech.cuny.edu/search/index.html;status=Search;itemheight=18;align=center;");
aI("text=Site Map;url=http://www.citytech.cuny.edu/sitemap/index.html;status=Site Map;itemheight=18;align=center;");
aI("text=Home;url=http://www.citytech.cuny.edu/m-menu3.html;status=Home;itemheight=18;itemwidth=83;align=center;");
}
drawMenus();