Quote:
Originally Posted by StupidScript
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. 
|
Thanks alot i've seen something like this ( something like it haha ) but is it also possible to do this without javascript?
I've asked a teacher of mine yesterday who is going to come with some code to check it out and see if it's possible. If not, i'll have to think about flash and javascript, which would be best regarding search engines and visitors?