Change the image source on rollover using jQuery

前端 未结 14 1016
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 10:23

I have a few images and their rollover images. Using jQuery, I want to show/hide the rollover image when the onmousemove/onmouseout event happen. All my image names follow t

14条回答
  •  孤街浪徒
    2020-11-22 10:47

        /* Teaser image swap function */
        $('img.swap').hover(function () {
            this.src = '/images/signup_big_hover.png';
        }, function () {
            this.src = '/images/signup_big.png';
        });
    

提交回复
热议问题