jQuery - Change image src on hover

前端 未结 6 996
自闭症患者
自闭症患者 2020-12-10 14:28

Basically I want to change the image src to add -active.png on hover.

So fb.png would become fb-active.png on hover, and fb.png when it\'s not hovering.

6条回答
  •  没有蜡笔的小新
    2020-12-10 14:58

    You can use mouseenter, mouseleave functions.

    
    
    
    
    

提交回复
热议问题