NewB
NewB

Reputation: 125

How do I change this script to OnMouseOver?

I've got this script that needs to be changes to OnMouseOver, currently it functions when you click but I need it to function when the mouse cursor goes over a div. Any help is greatly appreciated.

<script> 

// execute your scripts when the DOM is ready. this is a good habit
$(function() {

    // assign a click event to the exposed element, using normal jQuery coding
    $("#menuwrapper").mouseOver(function() {

        // perform exposing for the clicked element
        $(this).expose();

    });
});
</script>

Upvotes: 0

Views: 82

Answers (1)

geon
geon

Reputation: 8469

It's mouseover (all lowercase), not mouseOver.

http://api.jquery.com/mouseover/

Upvotes: 5

Related Questions