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

screenposition menu attribute problem


Poster: tepidarium
Dated: Monday October 27 2003 - 16:02:53 GMT

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


Poster: kevin3442
Dated: Monday October 27 2003 - 16:25:19 GMT

Hey,

Try getting rid of position=relative;

Kevin