Home  >  Article  >  Web Front-end  >  怎么在图片呼吸灯的基础上加入图片的切换_html/css_WEB-ITnose

怎么在图片呼吸灯的基础上加入图片的切换_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:03:111363browse


这个图片我是分为成了9宫格 现在的问题在于 我想在呼吸灯上面加入图片切换 也就是我鼠标悬浮在那一个图片上面 那张图片就切换成另一张 大神们 帮帮忙  感激不尽


回复讨论(解决方案)

$('img').hover(function(){this.src='img1'},function(){this.src='img2'})

$('img').hover(function(){this.src='img1'},function(){this.src='img2'})



+1.

我想的是九宫格中不同的图片我鼠标悬浮在其中一个的时候 切换过来的是不同的图片

大神 帮帮忙

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn