Safari related ? event handlers not being called

Discussion in 'Javascript' started by Martha Vineyard, Dec 16, 2003.

  1. 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
     
    Martha Vineyard, Dec 16, 2003
    #1
    1. Advertisements

  2. 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.
     
    Martin Honnen, Dec 16, 2003
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.