Javascript, IE and mouseover on select, option.

Hiya all.

I stumpled on a problem one of my coworkers were having today, in that he'd like to fire an onMouseOver event on each option in a select-object.

What ideally would should happen was that an image would be changed when the mouse hovers over the options in a select. This can be done with FireFox, but not with IE, by using onMouseOver on each option.
something along this line:

<select>
<option onMouseOver="doStuff(1)">Option 1</option>
<option onMouseOver="doStuff(2)">Option 2</option>
</select>

Now this works in FireFox, but unfortunally in IE, which is what the client is going to use.
Does anybody know of a work-around or possible alternative implementation to this problem?

With regards
[810 byte] By [Alsvha] at [2007-11-19 22:26:13]
# 1 Re: Javascript, IE and mouseover on select, option.
Sorry to tell you, but onmouseover does not work with the option tag in IE. Sorry.

Your best option is to create your own menus. Take a look here ( http://www.dev-archive.com/forum/showthread.php?t=385717). You can use my menu option from there.
PeejAvery at 2007-11-8 0:22:57 >