chukatz
10-11-2003, 10:39 AM
the following snippet is an example from a JS book,
explaining mouse events. which is fine, and the example
works fine as well, IF you acknowledge the mouseover with
a keypress and not a mouseclick. if you click the mouseover
alert, the mouseout event fires immediately which is probably
normal behavior, but in this case i'd like to have the mouseout ignored. any suggestions?
<html>
<head>
<title> MouseOver - One </title>
</head>
<body>
<a href="#"
onMouseOver="alert('That tickles!!');"
onMouseOut= "alert('That\'s better...');"
onClick ="return false;">elmo
</a>
</body>
</html>
explaining mouse events. which is fine, and the example
works fine as well, IF you acknowledge the mouseover with
a keypress and not a mouseclick. if you click the mouseover
alert, the mouseout event fires immediately which is probably
normal behavior, but in this case i'd like to have the mouseout ignored. any suggestions?
<html>
<head>
<title> MouseOver - One </title>
</head>
<body>
<a href="#"
onMouseOver="alert('That tickles!!');"
onMouseOut= "alert('That\'s better...');"
onClick ="return false;">elmo
</a>
</body>
</html>