Menu Positioning

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
BigJohnson
Advanced
Advanced
Posts: 14
Joined: Sat May 01, 2004 7:55 pm

Menu Positioning

Post by BigJohnson »

As with the menu shown on the Milonic front page, how do I achieve a fixed position, regardless of window resizing and screen resolution?

If I set a fixed position, and resize the window, the menu changes position, same applies if I change resolution.

I'm using frames at the moment to achieve this.

Thanks
BigJohnson
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Do you have a url, and which browsers? As far as I know you would set the position as below:

Code: Select all

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=55;alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=etc....;");
That coding should place the menu 10 pixels from the top and 55 pixels from the left.

Ruth
BigJohnson
Advanced
Advanced
Posts: 14
Joined: Sat May 01, 2004 7:55 pm

Post by BigJohnson »

Actually, and more accuratley, my problem occurs because I centre my pages, so when the screen is resized the menu's position is incorrect.

Is there a way to say "Centre -Offset"?

Thanks
Craig
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Not to my knowledge, as to that particular offset, however there is a sample for using screen position and offsets here http://milonic.com/menusample23.php that may help you.

Ruth
BigJohnson
Advanced
Advanced
Posts: 14
Joined: Sat May 01, 2004 7:55 pm

Post by BigJohnson »

The sample looks exactly the thing, but the "-offset" doesn't seem to work.
The "+offset" however does.

Any ideas?

Thanks
Craig
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

We need a site url to see your coding, without it we have no way of seeing if it's something else that is overriding the -offset.

Ruth
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Craig,

Didi you try:

Code: Select all

screenposition="center";
left="offset=-50";
in your menu definition?
Of course, you'd replace the -50 with the value you want to offset to the left.
Post Reply