Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: How to hide the menu using javascript?
magoicochea
Junior Member

Posts: 2
Registered: 6/4/2007
Location: Lima, PerA?
Member Is Offline
posted on 6/4/2007 at 03:58 PM Reply With Quote
How to hide the menu using javascript?


Hello

I have the menu created at the end of the HTML with the instructions:

<script language="JavaScript">
<!--
new menu (MENU_ITEMS, MENU_POS);
-->
</script>

However, I also have a button whose purpose is to hide the menu. How can I make the Tigra menu dissappear and make it appear once again when the button is clicked again?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 6/4/2007 at 05:44 PM Reply With Quote

There is no documented method to do that by a single function call.
You'll need get the references to the menu's elements and switch their visibility property. See the menu's source code for the naming convention of the menu's elements.
View User's Profile View All Posts By User U2U Member
magoicochea
Junior Member

Posts: 2
Registered: 6/4/2007
Location: Lima, PerA?
Member Is Offline
posted on 6/4/2007 at 07:57 PM Reply With Quote

Thanks,

doing this with every item of the A_MENUS collection seems to solve the problem:

for (var n_order = 0; n_order < menu.a_children.length; n_order++)
menu.a_children[n_order].e_oelement.style.display = 'none';
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Tigra Menu
Product Demonstrations Live Demos:
Traditional Blue
White Steps
Inner HTML
All Together
Frames Targeting
Free Download Free Download
Free Download Menu Builders
Online Builder
Builder for Windows
Product Documentation Documentation:
Documenation Page
Change Log
Menus Comparison Table
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004