468,766 Members | 1,408 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,766 developers. It's quick & easy.

Opening a DHTML menu from a SELECT box OPTION tag

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!!
Jul 23 '05 #1
2 1534
Ilpo wrote:
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.
Jul 23 '05 #2
RobG <rg***@iinet.net.auau> wrote in message news:<41***********************@per-qv1-newsreader-01.iinet.net.au>...
Ilpo wrote:
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.

MSIE Option objects have exactly zero event handlers, unlike
moz/gecko. Use something else if you need mouseover activation.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by bigfella | last post: by
19 posts views Thread by mart2006 | last post: by
2 posts views Thread by Ravi Joshi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.