WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Clickable menu item with submenu, Jason Tsai, July 16, 2003
     Re:Clickable menu item with submenu, Erik Arvidsson, July 16, 2003
         Re:Clickable menu item with submenu, Gerbrand J. Smit, July 16, 2003
             Re:Clickable menu item with submenu, Gerbrand J. Smit, July 16, 2003

Subject: Clickable menu item with submenu From: Jason Tsai Date: July 16, 2003

Hi,

I am using DHTML Menu 4. I have menu items which have submenus.

Is it possible to associate an action with a menu item which has a submenu? Like the following code:

mainMenuBusGrp = new Menu();

subMenuBusDiv = new Menu();

subMenuBusDiv.add( new MenuItem(...) );

mainMenuBusGrp.add( new MenuItem( "Amazon", "http://www.amazon.com", null, subMenuBusDiv ) );

I want to be able to click on "Amazon", and it will trigger some action. If I understand right, it seems like only the leaf can do that.

Can anyone give me some hint?

Thanks,

Jason




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX