开发者

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>开发者_C百科


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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜