• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Project 2. Creating Toggle-O-Matic Menus > Toggling with Extensions

Toggling with Extensions

This part is going to be very easy. In this section you’ll apply two extensions to each of the menu button hyperlinks. The first one, Toggle Menu, uses JavaScript to check the display property of the specified submenu. If it is set to none, then it switches it to block and vice versa. The second behavior you’ll apply is Toggle Link Class, which switches the style of the menu button (a.aMenuButton) to its down state (a.aMenuButtonDown).

Tip

It is a good idea to work in Code and Design view at the same time so that you can make selections in Design view while having the code in Code view while you use the extensions. You’ll need to know the selected menu button’s id for this part, and you’ll have to cancel out of the dialog to find it if you can’t remember and you don’t have it in front of you.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint