Combining Raphael and jQuery to achieve browser compatibility

前端 未结 5 1854
梦谈多话
梦谈多话 2021-01-02 06:52

Having discovered that IE does not handle javascript onmouseout, I\'m determined to use jQuery instead so the cross-browser compatibility would be taken care of

5条回答
  •  盖世英雄少女心
    2021-01-02 07:47

    If you end up just copying the code that's used by the Australia demo, you'll run into IE trouble no matter which handler (hover, mouseover, etc) you use.

    After banging my head on it for a while, it seems that the st.toFront() in the hover in/out functions cancel the "mouse out" event in IE. Delete those lines from the example code and you should be fine.

提交回复
热议问题