A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
how to write onMouseOver event
gates pakds
Greenhorn
Joined: Jul 20, 2006
Posts: 3
posted
Oct 19, 2006 09:37:00
0
hai
how to write onMouseOver event for <option> tag of listbox(selectbox)
Help me,
Thanks in advance
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
Oct 19, 2006 11:01:00
0
You can't....
Eric
Tim McGuire
Ranch Hand
Joined: Apr 30, 2003
Posts: 819
I like...
posted
Oct 23, 2006 10:39:00
0
Firefox supports onMouseOver events for select options. But since IE does not, it probably makes no sense to try and use it.
This example works in Firefox:
<select multiple name = "sel2" > <option value="" onMouseOverrrr="alert('hello')">one</option> <option value="">two</option> <option value="">three</option> <option value="">four</option> </select>
maybe you should describe what you are trying to do and someone might have a work-around?
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
Oct 23, 2006 10:43:00
0
But since IE does not, it probably makes no sense to try and use it.
[/QB]
Hence why I said you can't! I was too lazy to say that...lol
Eric
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56153
13
I like...
posted
Oct 23, 2006 12:50:00
0
In other words, you can only do it in specification-complian browsers; s concept seemingly foreign in the Pacific northwest.
Does IE7 fare any better than IE6 at adhereing to the HTML 4 Specification?
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: how to write onMouseOver event
Similar Threads
Mouse wheel in javascript
Javascript submit problem
IE and Netscape differences
new look to JavaRanch
Show hovered drop down item as tooltip
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter