Opening a DHTML menu from a SELECT box OPTION tag

I

Ilpo

Hi!

Is it possible to open DHTML menu from a select box option?

I need a select box which shows a new sub-menu when pointing the mouse
over an option. Does anyone know is this possible? The option
onMouseover doesn't seem to work.

Thanks for any help!!
 
R

RobG

Ilpo said:
Hi!

Is it possible to open DHTML menu from a select box option?

I need a select box which shows a new sub-menu when pointing the mouse
over an option. Does anyone know is this possible? The option
onMouseover doesn't seem to work.

Thanks for any help!!

The W3C HTML spec says in regard to onmouseover:

"...This attribute may be used with most elements "

However, whilst it can be used with a select, it does not appear to
work with option elements. You could attach an onchange event to the
select tag so that when users click on an option, the submenu is
displayed.

Otherwise, perhaps a select element is not the right thing to use?

Cheers, Rob.
 
R

RobB

RobG said:
The W3C HTML spec says in regard to onmouseover:

"...This attribute may be used with most elements "

However, whilst it can be used with a select, it does not appear to
work with option elements. You could attach an onchange event to the
select tag so that when users click on an option, the submenu is
displayed.

Otherwise, perhaps a select element is not the right thing to use?

Cheers, Rob.


MSIE Option objects have exactly zero event handlers, unlike
moz/gecko. Use something else if you need mouseover activation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top