marowiliams
Junior Member
Posts: 5
Registered: 1/31/2007
Location: Italy
Member Is Offline
|
| posted on 1/31/2007 at 08:51 AM |
|
|
horizontal submenu items
Hi, I'm looking for instructions or an help to view horizontal also the submenu items;
I found some posts where is indicated that is necessary set
'top' parameter for that level to 0 and
'left' parameter to width of the menu items.
But I'm not so expert with javascript so after some attempts I decided to write this post to find help.
Please someone can explain exactly where are the 'parameters' that have to be modified.
thank in adavance
regards
|
|
|
tigra
Administrator
Posts: 1916
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/31/2007 at 12:49 PM |
|
|
The menu comes with the builder. You can change the level settings from vertical to horizontal using the "Level Settings" form while on the
"Items" tab with the second level item selected.
|
|
|
marowiliams
Junior Member
Posts: 5
Registered: 1/31/2007
Location: Italy
Member Is Offline
|
| posted on 2/1/2007 at 03:18 AM |
|
|
thank you for your fast answer;
yes ok, I can create the menu with all specs that I want using the builder,
but I'm trying to modify a dinamic menu used for a joomla component and
module (lxmenu), you can see the js file used for this module,
maybe with this script is not possible have submenu in horizontal.
thanks
Marco
Attachment: menu.js (10.8kb)
This file has been downloaded 199 times
|
|
|
tigra
Administrator
Posts: 1916
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 2/1/2007 at 09:28 AM |
|
|
The menu file looks ok. Post your MENU_TPL structure and I'll show you where to make changes.
|
|
|
marowiliams
Junior Member
Posts: 5
Registered: 1/31/2007
Location: Italy
Member Is Offline
|
| posted on 2/2/2007 at 01:40 AM |
|
|
ok, maybe your are talking about this file.
Attachment: pos_lxmenu.js (511b)
This file has been downloaded 213 times
|
|
|
tigra
Administrator
Posts: 1916
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 2/2/2007 at 10:05 AM |
|
|
yep, that's the one. In the second set of parameters replace:
'top':20,
'left':0,
with
'top':0,
'left':200,
|
|
|
marowiliams
Junior Member
Posts: 5
Registered: 1/31/2007
Location: Italy
Member Is Offline
|
| posted on 2/5/2007 at 01:48 AM |
|
|
thanks!
great it's exactly that I was looking for;
now I try to modify the code to obtain a relative position of submenu
items, in fact the last link on the right, that's inside a table of 960 px, have
3 submenu items that go out the 'table' and the 'screen',
....so I'll try to give a fixed size of 960 px for the layout of submenu items.
thanks again
Marco
|
|
|
tigra
Administrator
Posts: 1916
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 2/5/2007 at 09:47 AM |
|
|
With free version the settings (sizes, offsets etc) are shared by all submenus and items within the same level.
If this is prevents you from configuring the menu the way you want (usually it doesn't) consider PRO or GOLD version that allow to override the
settings for individual items.
|
|
|
marowiliams
Junior Member
Posts: 5
Registered: 1/31/2007
Location: Italy
Member Is Offline
|
| posted on 2/5/2007 at 10:13 AM |
|
|
yes right!
I think that I'll follow your advice and so I'm
considering to pass at the versions Pro or Gold.
thanks
Marco
|
|
|