safari onmouseover/out problems

M

mike.thirlwell

Hi there,

I've created the following demo to illustrate a problem I've been
having with Safari (2.0.3 in my case) firing onmouseout events when the
onmouseover event should be being triggered. Is this a well documented
bug and, if so, what are the workarounds?

Demo here: http://www.cbjdigital.com/test.htm

Source:

<html>
<head><title>test</title></head>
<body>
<p>
<a href="#" onmouseover="input1.value='mouseover' ; "
onmouseout="input1.value='mouseout' ; ">change on mouseover and
mouseout</a><br/>
<input type="text" id="input1" value="" />
</p>
<p>
<a href="#" onmouseout="input2.value='mouseout' ; ">change on mouseout
only</a><br/>
<input type="text" id="input2" value="" />
</p>
<p>
<input type="button" onclick="input1.value='' ; input2.value='' ;"
value="Reset" />
</p>
</body>
</html>

On the demo, in Firefox everything works as it should with the value of
the second text input changing only when the cursor is moved off the
link. Safari however triggers the mouseout event when the cursor is
moved *onto* the link. Why is this?

Thanks in anticipation.

Mike
 
A

ASM

(e-mail address removed) a écrit :
Hi there,

I've created the following demo to illustrate a problem I've been
having with Safari (2.0.3 in my case) firing onmouseout events when the
onmouseover event should be being triggered. Is this a well documented
bug and, if so, what are the workarounds?

my Safari 1.3.2 (v312.5) runs as Firefox

workaround : back with Mac OS 10.3 and Safari 1.3 :)

onmouseover="" onmouseout="alert('hello')"
? ? ?

or/and with a doctype ?
Safari however triggers the mouseout event when the cursor is
moved *onto* the link. Why is this?

it knows only frontieres, borders ?
events are only oncrossover ? in(to) always before out(from)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top