Tuesday 15 March 2011

jquery - How do I simulate a mouseover in pure JavaScript that activates the CSS ":hover"? -


I am trying to find the code to imitate mouseover in Chrome, but "mouseover "The listener is removed, the CSS" hover "announcement is never set!

I also tried to do the following:

  // Calling within the mouseover listener is called Element.classList.add ("hover");   

But nothing is being declared in its hover declaration.

Is this possible?

You can not do this one is not.

Events generated by user agents, either as a result of user interaction, or as a direct result of the changes made to the DOM, are trusted by the User Agent, which reliably authorize ScriptEvent.createEvent ( The events generated by the script via the "Event") method are not raised, using the Event.inetEvent () method is modified, or in the EventTarget.dispatchEvent () method. Is transmitted Dyam. True credentials of trustworthy events are true, whereas false beliefs of false in unbelievable events are value.

Most untrusted events should not trigger default tasks , click with exceptions or DOMActivate the event

Class, and manually add / remove it on mouseover / mouseout event.

No comments:

Post a Comment