Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Noob question re menus 1

Status
Not open for further replies.

doctorChuckles

Programmer
Feb 2, 2007
20
US
Hi,

A basic question about dropdown menus, if I may.

Let's say we have a horizontal row of four menu items. If the mouse is over one of the items, a menu drops down. Lets say the menu that drops down contains three additional items.

I understand javascript is picking up a mouseover message. As far as I can tell, when the mouse is over an object -- representing a main menu item, javascript shows something, which is otherwise hidden. When the mouse leaves that object, Javascript hides the same thing.

Is that right, so far?

If so, as far as I can tell, the row of main menu items is a table, say, one cell high, and four cells wide. The thing that gets shown, and then hidden again, is another table, say, one cell wide, and three cells high, positioned just below the main menu item.

Am I getting the general idea?

Sorry if the terminology isn't quite right.

Thanks,


Tim
 
The menu that pops down is probably a table within a <div> tag, with CSS attributes (either built-in or JavaScript-controlled) to specify its position. Otherwise, all your menu items in that horizontal table would have to be as wide as the table underneath it because the tables, invisible or not, wouldn't be able to overlap. ;-)

-------------
Cuvou.com | The NEW Kirsle.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top