File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Dynamic/pop-up menus Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Dynamic/pop-up menus" Watch "Dynamic/pop-up menus" New topic
Author

Dynamic/pop-up menus

Gjorgi Var
Ranch Hand

Joined: Feb 24, 2004
Posts: 85
Dynamic, DHTML or pop-up menus, name it however you wish, those are the menus that appear on mouseover on different options while cruising a site. My question is:
Is there a general "scenario", sort of "movie script" kind of sequence of steps for creating them? I am familiar with CSS and how to dynamically create JavaScript, but all I could find so far as an explanation for those menus and how to create them is either a sea of buffling code or a recommendation for using some application for their creation...
So, dynamic menus... not image maps... :roll:
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50679

Use a div element, and here are the CSS high points:

- position: absolute
- z-index
- display: none/block

The javascript doesn't need to be complicated unless you want complicated effects. Toggling the 'display' CSS rule is the key to showing and hiding the menu.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
IntelliJ Java IDE
 
subject: Dynamic/pop-up menus
 
Threads others viewed
Adding JMenus to EditPanes
Java Menus Package
pop-up window
How to create Xml Dynamic Menu
Breadcrumb in struts 2
Two Laptop Bag