Reference mouseOver()

mouseOver()

Calls a function when the mouse moves onto the element.

Calling myElement.mouseOver(false) disables the function.

Examples

Syntax

mouseOver(fxn)

Parameters

fxn
Function|Boolean:

function to call when the mouse moves onto the element. false disables the function.

Notice any errors or typos? Please let us know. Please feel free to edit src/core/p5.Element.js and open a pull request!

Related References