spa2036
Apr 5 2005, 08:47 AM
Hi there,
I have created a multilevel horizontal menu with horizontal submenu. I also managed with the help of this forum to have the submenu aligned left at all times.
While testing this menu I discovered that this was not the best solution. What I would like to have now is the left part of the "main" menu have the submenu items align left, while the right half of the "main" menu should align the submenu items to the right. A second wish is to have the right aligned submenu not to exceed the most right part of "CONTACT" when hovered.
Is it possible to have this kind of alignment?
Thanks in advance.
spa2036
Apr 5 2005, 08:49 AM
Oops, I forgot to post the code,
Here it is.
spa2036
Apr 7 2005, 05:05 AM
Problem solved thanks to Xavier. Great program!!
Thank you spa2036
------------------
This is actually a VERY good idea and I really liked how the menus looked in spa2036's project so, in case anyone wants to know how this was done, here are the instructions:
- Click "File->Project Properties->Advanced->Menus Offset"
- Click "Advanced"
- Click "Add"
- Type a name for your "custom offset definition" (it can be anything)
- Click the "Advanced" tab
- Click the "Root Level Menus" tab
- Paste this code:
CODE
if(lmcHS.id.substr(1)<=1003)
xy[0] = parseInt(dmbtbF[1].left);
else
xy[0] = parseInt(dmbtbF[1].left) + parseInt( dmbtbF[1].width) - parseInt(Menu.style.width);
Notice the code has a "1003" in the first line. This number means that all menus coming from the first 3 toolbar items will be left-aligned and the rest will be right-aligned.
Change this number to fit your needs.
Attached, is a sample project showing this feature.
Tecktron
Apr 6 2006, 09:31 PM
I've been looking for some information on this stuff trying to figure it out. I've found a few examples, but not sure what things like tbS mean and why I can do tbS.left but not tbS.right and I've been experimenting blindly and without much luck. Is there a page with documentation on this anywhere?
Thanks
--T
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.