用JQuery给图片添加鼠标移入移出事件

时间:2016-07-13 21:00:39   收藏:0   阅读:1680
    $("#addLineImg").mouseover(
        function(){
            $("#addLineImg").attr("src","pages/annottor/claim/img/plus2.png");
        }
    );
    $("#addLineImg").mouseout(
        function(){
            $("#addLineImg").attr("src","pages/annottor/claim/img/plus.png");
        }
    );

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!