screenposition menu attribute problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

screenposition menu attribute problem

Post by tepidarium »

Hi,

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();
Thanks for any advice you can provide.[/code]
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hey,

Try getting rid of position=relative;

Kevin
Post Reply