Position Help

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
thatdude
Beginner
Beginner
Posts: 1
Joined: Fri Aug 12, 2005 8:34 am
Location: Calfornia
Contact:

Position Help

Post by thatdude »

Hey Everyone,

I'm trying to position a menu in a basic html page
Here's the page and the menu_data.js file:

Code: Select all

_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=180;
_subOffsetLeft=-2;




with(menuStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="purple";
offcolor="#ffffff";
onbgcolor="#C00CE0";
oncolor="#black";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
overflow="scroll";
style=menuStyle;
top=10;
aI("status=Back To Home Page;text=<center>Welcome To <br>From Heart to Hand</center>;url=http://www.fromheart2hand.org/;");
aI("status=Back To Home Page;text=<center>Home</center>;url=http://www.fromheart2hand.org/home.html;");
aI("status=Back To Home Page;text=<center>African Village in <br>America</center>;url=http://www.fromheart2hand.org/avia/avia.html;");
aI("status=Back To Home Page;text=<center>The Rites of Passage <br>Program</center>;url=http://www.fromheart2hand.org/ropp/ropp.html;");
aI("status=Back To Home Page;text=<center>The \"From Heart to Hand\" <br>Wrist Band</center>;url=http://www.fromheart2hand.org/wb/wb.html;");
aI("status=Back To Home Page;text=<center>School Supplies Drive</center>;url=http://www.fromheart2hand.org/ssd/ssd.html;");
aI("status=Back To Home Page;text=<center>The \"Let\'s Play\" Project</center>;url=http://www.fromheart2hand.org/lpp/lpp.html;");
}

drawMenus();
The menu will not move to the requested position.
As you can see at the top, I asked the menu to move 180 pxs down. Any help is appreciated
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

subOffsetTop= refers to where any submenu will open in relation to the position of the item that is the parent of the submenu. That is a auto feature for when you mouse over a main menu item that has a submenu. Let's say you had a submenu for the School Supplies Drive, it would open way down the page from that item. So, you probably want to change that back to a lower number.

To set the main menu position go down to your main menu info and change top=10; to top=180;

Ruth
Post Reply