menu positionning

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Darkangel
Advanced
Advanced
Posts: 24
Joined: Sat Mar 05, 2005 12:44 am

menu positionning

Post by Darkangel »

Hi to all of you!!

I encounter a problem of postionning!
i've got the following script:

Code: Select all

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
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 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: Select all

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
Darkangel
Advanced
Advanced
Posts: 24
Joined: Sat Mar 05, 2005 12:44 am

Post by Darkangel »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

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

Ruth
Post Reply