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

lock menu x position, but enable vertical follow scroll


Poster: alex130
Dated: Friday August 6 2004 - 17:47:21 BST

Hi, I'm having trouble to position my menu at the right side of the html page, so menu right edge will be attached to some static graphics.

I'm using the following code to declare main menu:

Code:
  with(milonic=new menuname("Main Menu")){
    style=menuStyle;
    screenposition="top;right"
    alwaysvisible=1;
    left="offset=-20";
    top="offset=170";
    followscroll="100,5,100";
    orientation="vertical";
    aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
    aI("text=Menu Samples;showmenu=Samples;");
    aI("text=Milonic;showmenu=Milonic;");
    aI("text=Partners;showmenu=Partners;");
    aI("text=Links;showmenu=Links;");
    aI("text=My Milonic;showmenu=My Milonic;");
  }


Take a look at the following link:
http://www.angelfire.com/un/milonicmenu

The problem arises when user resizes the window. I want to achieve railing slide effect (and prevent page content overlap). Meaning, menu's right edge must always remain on the gray thick line.
If someone knows how to do that, please tell me.


Poster: Maz
Dated: Friday August 6 2004 - 18:30:27 BST

Have you tried top and right position instead of screen position, it looks like it might be better in this case since you have the page set right.

maz


Poster: alex130
Dated: Saturday August 7 2004 - 13:53:42 BST

I've tried that but still there is a problem with left attribute.

Code:
  with(milonic=new menuname("Main Menu")){
    style=menuStyle;
    //screenposition="top;right"
    alwaysvisible=1;
    left="680";
    top="170";
    followscroll="100,5,100";
    orientation="vertical";
    aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
    aI("text=Menu Samples;showmenu=Samples;");
    aI("text=Milonic;showmenu=Milonic;");
    aI("text=Partners;showmenu=Partners;");
    aI("text=Links;showmenu=Links;");
    aI("text=My Milonic;showmenu=My Milonic;");
  }


Now when the window is maximized the menu is on the center of the table (I have 1152x854 resolution) Image.,

but when window minimized to the width of the table or less, everything works ok

Image.

Maybe there is equivalent "right" attribute, that can be set...?


Poster: Maz
Dated: Sunday August 8 2004 - 8:27:41 BST

Hmm, I don't remember offhand, if you can use right instead of left.

I was resisting telling you to put it in the table. ;)
But that would keep it where you want it with position=relative;

maz


Poster: alex130
Dated: Sunday August 8 2004 - 21:05:59 BST

The problem with relative position is that you cannot use follow scroll feature :(


Poster: alex130
Dated: Monday August 9 2004 - 11:50:32 BST

Maybe it is possible to set left position of main menu to be left position of some anchor object, which is located where I want the menu to appear?