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

RTL, submenu and divides - Open LTR too?


Poster: Boa
Dated: Monday March 3 2008 - 15:57:11 GMT

Hi,

we have a site using this code for one of the menu items:

style=submenuStyle;
openstyle="rtl";
overflow="scroll";
divides=2;

It all works fine in the respect that the submenu is opened to the left and spans into two columns. But when going to the submenu the new submenus opens on the right. That's fine for the menu items in the RIGHT column. The question is: Is there anyway we can have the menu items activated by the LEFT column to open on the left??

I fear not as it's a flexible menu but someone might figure it out anyway.

TIA

Re: RTL, submenu and divides - Open LTR too?


Poster: Ruth
Dated: Monday March 3 2008 - 20:34:04 GMT

Hi,

Openstyle is a menu property so it applies to whatever menu in which it is placed. It is not 'inherited' by submenus opening off the menu with that property coded. This means that you'd code the submenus that open off the items in the left column with that property.

Ruth

Re: RTL, submenu and divides - Open LTR too?


Poster: Boa
Dated: Monday March 3 2008 - 20:44:02 GMT

Hi Ruth,

I understand it's a menu property and as such not inherited. BUT my problem is that the menu is divided into two columns but still the same menu. So how do I have the left to open RTL and the right to open LTR .

So the question could maybe be like this also: Can Openstyle be applied to columns within a divides syntax?

TIA

Re: RTL, submenu and divides - Open LTR too?


Poster: Ruth
Dated: Monday March 3 2008 - 21:21:28 GMT

Hi,

No, you have to put it in the submenu that you want to open rtl. Divided menus create columns or rows based on whether they are set as horizontal or vertical; if horizontal, then the divide for a 10 item menu would be 2 rows with the 1st 5 items on top and the last 5 on bottom, if vertical then the divides would be two columns and are set up by odd and even items, the odd items would be in the left column and the even in the right. This is assuming divides=2 as you posted. So, if your submenu that you gave the code for is as follows [I used the menu data in the download for the menu so you should be able to set up the coded to test, and I created the subStyle with no separators and no borders so the vertical submenu would divide].

Code:
with(milonic=new menuname("MyMilonic")){
style=subStyle;
openstyle='rtl';
overflow="scroll";
divides=2;
aI("text=Login;url=http://www.milonic.com/login.php;showmenu=milonic;");
aI("text=Licenses;url=http://www.milonic.com/mylicenses.php;showmenu=links;");
aI("text=Invoices;url=http://www.milonic.com/myinvoices.php;");
aI("text=Make Support Request;url=http://www.milonic.com/reqsupport.php;");
aI("text=View Support Requests;url=http://www.milonic.com/mysupport.php;");
aI("text=Your Details;url=http://www.milonic.com/mydetails.php;");
}


The odd items, Login, Invoices, View Support Requests would be in the left column, and the even in the right. So, any item in the left column with a showmenu, like the first one, would have that submenu, i.e. milonic, coded as openstyle='rtl'; this means when you mouseover the Login item that Milonic submenu would open on the 'left' side of the login item. Since the Licenses item is in the right column, then that Links menu would not be coded and would open default at the 'right' side of the right column.

Ruth

Re: RTL, submenu and divides - Open LTR too?


Poster: Boa
Dated: Monday March 3 2008 - 21:39:24 GMT

Thanks, Ruth!

Somehow I missed the "showmenu" to be added to the link.

Thanks!