I'm trying to trigger the event mouseover
which is very good in Safari and Chrome Does not work in Mac:
$ (".footer img # image"). Trigger ('mouseover');
I also tried this Javascript code snippet:
var event = document.createEvent ("HTMLEvents"); Event.initEvent ("mouseover", true, true); Document.getElementById ("#image") dispatchEvent (event).
However this does not seem to work very well. Does anyone know a reliable way to work in Safari and Chrome in Mac?
Adding new jQuery event and pageX and page W in it:
< Code> var element = $ ("div.target"); Var mouseover = $ .vent ("mouseover"); Mouseover.pageX = 100; Mouseover.pageY = 1000; Element.trigger (mousedown);
Original JavaScript:
& lt;
/ P>
I have seen similar posts with it, try the \ post link if possible and find.
Hope it helps!
Comments
Post a Comment