Hi,
I've got some fairly standard vertical menus but the web designer my client is using designed the menus so that they are all right-aligned.
That is, the box of the submenus appear right-aligned to the box of the primary menu. The default appears to be left-alignment.
There is some sort of global variable in menu_data.js called
_subOffsetLeft which would be useful but changing its value doesn't
appear to do anything and I can't find any documentation on it.
Thanks!
Cameron
?How-to right align vertical menus
Maz is right... placing openstyle="rtl"; in the definition for each submenu ought to do the trick (assuming I understand the goal). E.g.,
Cheers,
Kevin
Code: Select all
with(milonic=new menuname("MenuName")){
style=menuStyle;
openstyle="rtl";
aI("etc, etc, etc");
aI("etc, etc, etc");
}
Kevin
Thanks!
Sadly, that didn't seem to work for me. The menus continue to be
left-aligned. Let me see if I can draw ASCII pix:
<pre>
Left-aligned:
+------------+
| menu1 |
+------------+
+------------------+
| submenu1 |
+------------------+
Right-aligned:
+------------+
| menu1 |
+------------+
+------------------+
| submenu1 |
+------------------+
</pre>
Cheers!
Cameron
Sadly, that didn't seem to work for me. The menus continue to be
left-aligned. Let me see if I can draw ASCII pix:
<pre>
Left-aligned:
+------------+
| menu1 |
+------------+
+------------------+
| submenu1 |
+------------------+
Right-aligned:
+------------+
| menu1 |
+------------+
+------------------+
| submenu1 |
+------------------+
</pre>
Cheers!
Cameron
I think you can do that using top="offset= whatevernumber"; needed, and left="offset=whatevernumber"; You can use negative numbers here. You would use these positions in the submenus you want to position from the main menu item. This is only a suggestion because without seeing the page and where the menu is and the submenus are supposed to open there's no way to know if the anti-collision part of the program will be called into use or if something else will cause a problem with this. There is also a section on methods and functions. I know there are things to do with gpos, getting a position and spos, setting a position but I don't really know if they refer to anything you would need.
http://milonic.com/menu_methods.php
Ruth
http://milonic.com/menu_methods.php
Ruth