By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,742 Members | 2,026 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,742 IT Pros & Developers. It's quick & easy.

onmouseover in option

P: 2
Hello everybody,
I want to use the onmouseover commentd inside the option tag.

[HTML]<select name="select" size="4" style="font-family: tahoma;font-size:8pt;" multiple >
<option onmouseover="process();" onmouseout="return clear();" value="some value">
some text
</option>
</select>[/HTML]

It works with FireFox, but does not work with IE and with Google Chrome. Do you know why. Is there any work around?

Thank you,
Lev Tannen
Oct 30 '08 #1
Share this Question
Share on Google+
7 Replies


P: 55
The answer is in this link..... Google Search for html onmouseover....notice how it's spelled
Oct 30 '08 #2

P: 93
Sorry But I really do not understand the meaning of the line "onmouseover commentd " What you want to do? is not telling your code instead that you want to use the events onmouseover and onmouseout.

Basically these are two events on which you can call your functions but what is inside that function that we have to look .As these two handlers are supported by every browser so this is not the case of the your problem better you should post the code of the function "process".
Oct 31 '08 #3

P: 55
the problem is in the case of the characters he is using in his html tag....regardless of how his functions work, onmouseover is supposed to be "onMouseOver" inside of html tags
Oct 31 '08 #4

acoder
Expert Mod 15k+
P: 16,027
No, it would work fine as onmouseover too. The problem is that IE doesn't support these events for options. In fact, options are regarded as part of a select and not elements in their own right. I'm not sure about Chrome though.
Oct 31 '08 #5

P: 93
the problem is in the case of the characters he is using in his html tag....regardless of how his functions work, onmouseover is supposed to be "onMouseOver" inside of html tags
Can you please tell me where you have found that the event onmouseover is not getting fired instead of onMouseOver event.The solution reason given by the acoder is correct.
Oct 31 '08 #6

P: 2
No, it would work fine as onmouseover too. The problem is that IE doesn't support these events for options. In fact, options are regarded as part of a select and not elements in their own right. I'm not sure about Chrome though.
[quote=levtannen]Yes, you are right. But the question remains, is there a way around?
Nov 5 '08 #7

acoder
Expert Mod 15k+
P: 16,027
Firstly, what does process() and clear() do?

Based on your requirements and forced by browsers failing to recognise options properly, you may have no choice but to go with something like this - a replacement DHTML select.
Nov 6 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.