Safari related ? event handlers not being called

M

Martha Vineyard

Hi,

I have a site which I tested today for Safari compatibility and found the event handlers assigned in-line in a DIV declaration were
not being called. Example :

<DIV unselectable="on" ID="subCat1"
style="text-align:center; color:#ID4921; font-family:Arial Bold; font-size:14; position:absolute; left:254; top:337; width:122;
visibility:visible;"
onmouseenter="gotMouse()" onmouseleave="gotMouseOut()" onclick="gotSelected()">
Sapphire
</DIV>

No error is thrown but the 'gotMouse, 'gotMouseOut, and 'gotSelected functions are not being called. Works fine in IE 5/6.

Appreciate any ideas.

thanks, Bill Woodruff
dotScience
Chiang Mai, Thailand
 
M

Martin Honnen

Martha said:
I have a site which I tested today for Safari compatibility and found the event handlers assigned in-line in a DIV declaration were
not being called. Example :

<DIV unselectable="on" ID="subCat1"
style="text-align:center; color:#ID4921; font-family:Arial Bold; font-size:14; position:absolute; left:254; top:337; width:122;
visibility:visible;"
onmouseenter="gotMouse()" onmouseleave="gotMouseOut()" onclick="gotSelected()">
Sapphire
</DIV>

No error is thrown but the 'gotMouse, 'gotMouseOut, and 'gotSelected functions are not being called. Works fine in IE 5/6.

onmouseenter/leave are IE5.5/6 on Win only, I wouldn't advise to use
them unless you have an intranet with IE5.5/6/Win clients only.
HTML 4 defines
onmouseout
onmouseover
and Safari is more likely to implement those.
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top