View Single Post
Old 11-29-2006, 09:38 PM   #4 (permalink)
StupidScript
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
The concept is this:

onmouseover = make visible the submenu for that item
onmouseout = make hidden the submenu for that item

This is accomplished using a combination of HTML, Javascript and CSS ... DHTML (Dynamic HTML), if you will.

The CSS describes the "visibility" property of the HTML division as "visible" or "hidden". (The property's value is a string and must be delineated by single- or double-quotes.) The Javascript provides the trigger for the change in the state of the "visibility" property.

For example:
Code:
<a onmouseover="document.getElementById('item1menu').visibility='visible'" onmouseout="document.getElementById('item1menu').visibility='hidden'">Item 1</a> <div id="item1menu" style="visibility:hidden" ...>
(There's actually more code required so that when the user moves the cursor off of the "trigger" and onto the now-revealed submenu that the submenu doesn't go "hidden", but it's a simple example. )

Helpful? Hope so.

Last edited by StupidScript : 11-29-2006 at 09:42 PM. Reason: Y'know ... code stuff ...
StupidScript is offline   Reply With Quote