Positioning the menu correctly when changing resolution

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jwm1205
Beginner
Beginner
Posts: 4
Joined: Fri Oct 24, 2003 3:46 pm
Location: USA
Contact:

Positioning the menu correctly when changing resolution

Post by jwm1205 »

This is my dilemma; my menu is correctly positioned when my resolution is 800x600. However, when I switch the resolution to 1024x768, my web page is centered on the page and my menu is on the left side of the screen according to the coordinates I specified within the menu_data.js file.

Is there a way to incorporate the following line within my page in order to have it change when my resolution changes?

<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>

Do I need to use the following coordinates:

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=135;
left=2;

Or, is there a way to include the script from above within the line of code where I would like for it to be positioned.

Thanks for any assistance you can provide.

Jason
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

There are properties of the menu that allow it to float on your webpage so that when you resize the screen/browser it will also move with them. See the milonic homepage and look at the quick reference guides, its ALL there. Also see here viewtopic.php?t=2981
Best of luck!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply