473,394 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

onmouseover in option

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
7 3351
The answer is in this link..... Google Search for html onmouseover....notice how it's spelled
Oct 30 '08 #2
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
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
16,027 Expert Mod 8TB
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
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
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
16,027 Expert Mod 8TB
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

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

Similar topics

12
by: Epetruk | last post by:
Hi all, I want a page where the contents of a table cell are replaced with an image when the mouse moves over the cell, and the text is restored when the mouse moves out. Here's the html for the...
6
by: bzi999 | last post by:
Hi! I'm having a strange problem with javascript and maybe someone herecan help me. Look at this simple html snippet: <div id="menu"> <img src="images/m1.gif" usemap='#map' border=0> <MAP...
5
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything...
2
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
7
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
3
by: oopaevah | last post by:
I have written some dom code to create a list of divs, each with it's own id. I want to set the onmouseover and onmouseout events to highlight the div when the mouse is over it. However I cannot...
11
by: jjcarrell | last post by:
Hello, I'm trying to make different tooltips appear as the mouse moves over the various options of a select. I found a slick method for doing so in mozilla-based browsers, but IE chokes on it. ...
3
by: =?Utf-8?B?RGVlcGE=?= | last post by:
Hi All, I have a webform in asp.net framework 1.1 where the dropdownlist is populated with list of locations from the database. The depending on the list selected, the user will be able to see...
3
by: linuskamb | last post by:
It seems, at least as far as my tests show, that Safari does not fire onmouseover for select options. with the code below, I can get all the messages in Firefox, but none in Safari. If I attach a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.