View Single Post
Old 11-30-2006, 12:46 AM   #5 (permalink)
Klaas Koopman
v7n Mentor
 
Klaas Koopman's Avatar
 
Join Date: 01-02-06
Location: The Netherlands
Posts: 1,024
iTrader: 0 / 0%
Latest Blog:
Stoppen?

Klaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of lightKlaas Koopman is a glorious beacon of light
Send a message via MSN to Klaas Koopman
Quote:
Originally Posted by StupidScript View Post
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?
Klaas Koopman is offline   Reply With Quote