Is it possible to have a dhtml menu go from bottom to top intead of top to bottom.
Current Menu Action
MenuItem
|
|
|
|
v
Desired Action
^
|
|
|
|
|
|
MenuItem
Is this possible
Yes, it is possible.
Assuming you have a horizontal main menu, if you set the main menu array's 6th element (Screen Position) to "bottom", then the main menu will appear at the bottom of the window and submenus will open upward (you should probably also make the array's 2nd element -- Menu Top -- blank, even though setting Screen Position to "bottom" will override it). If your page is taller than the window will accomodate, you may wish to set the 11th element of the array (Follow Scrolling) to 1, to keep the menu visible at the bottom of the page as the user scrolls up or down.
If you don't want the menu at the bottom, you can position it where you like, then force the its submenus to appear above the main menu by specifying an offset value in the 2nd element (Menu Top) of each submenu's array. For example, if I had a submenu called "news" I could define an offset to move it up, like so:
Notice that the 2nd element of the array contains "offset=-150". This would move the resulting menu up by 150 pixels (adjust as needed for each of your submenu).
Hope that helps,
Kevin
P.S. Better to post questions in the "Help & Assistance" forum... you'll probably get a faster response.
Assuming you have a horizontal main menu, if you set the main menu array's 6th element (Screen Position) to "bottom", then the main menu will appear at the bottom of the window and submenus will open upward (you should probably also make the array's 2nd element -- Menu Top -- blank, even though setting Screen Position to "bottom" will override it). If your page is taller than the window will accomodate, you may wish to set the 11th element of the array (Follow Scrolling) to 1, to keep the menu visible at the bottom of the page as the user scrolls up or down.
If you don't want the menu at the bottom, you can position it where you like, then force the its submenus to appear above the main menu by specifying an offset value in the 2nd element (Menu Top) of each submenu's array. For example, if I had a submenu called "news" I could define an offset to move it up, like so:
Code: Select all
addmenu(menu=["news","offset=-150",,95,1,,style1,0,,effect1,0,0,0,,,0,0,,,0,,
...
menu item definitions go here
...
])
Hope that helps,
Kevin
P.S. Better to post questions in the "Help & Assistance" forum... you'll probably get a faster response.
