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

menu positionning


Poster: Darkangel
Dated: Monday March 14 2005 - 23:11:31 GMT

Hi to all of you!!

I encounter a problem of postionning!
i've got the following script:
[code]
with(milonic=new menuname("Start")){
style=menuStyle;
LEcran = screen.height
bottom=0;
left=0;
alwaysvisible=1;
aI("text=Lancer;align=center;bgimage=imgmenu/begin.gif;itemheight=30px;itemwidth=101px;openonclick=true;showmenu=Main Menu;");
}
[code]

and i need to put this button at bottom left of pages!!
but it always appear at the top left even with the bottom=0;

what's wrong please!
thanks in advance


Poster: kevin3442
Dated: Tuesday March 15 2005 - 0:30:17 GMT

Hi Darkangel,
Darkangel wrote:
...but it always appear at the top left even with the bottom=0;

There is no menu property called bottom, so setting bottom=0; will have no effect. Instead, you could use the screenposition property. Try this:
Code:
with(milonic=new menuname("Start")){
style=menuStyle;
screenposition="bottom;left";
alwaysvisible=1;
aI("text=Lancer;align=center;bgimage=imgmenu/begin.gif;itemheight=30px;itemwidth=101px;openonclick=true;showmenu=Main Menu;");
}

That should put the button right at the bottom left of the browser window. If you want it to stay there as the user scrolls the page, try setting followscroll=1;

Cheers,

Kevin


Poster: Darkangel
Dated: Tuesday March 15 2005 - 13:49:52 GMT

No problem regarding the button now it works!
however regarding the menu in itself i want it to appear at this exact position:
left : 0
bottom: 30px

how am i suppose to insert that in this line:

screenposition="bottom;left";

I'v trid bottom: 30;
doesn"t change anything..

Thanks in advance


Poster: Ruth
Dated: Tuesday March 15 2005 - 14:26:14 GMT

Try screenposition="bottom,left"; top="offset=-30";

It seems to work in IE5.5, Netscape 7.1, Opera 7.11

Ruth