471,354 Members | 1,006 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

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 1592
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
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.