$(this).attr({'img src' : './images/avail_hover.png'}); there is no "img src" attr, but there is "src", so
$(this).attr('src', './images/avail_hover.png'); and there's a second event to hook on the .hover event is when you mouse off, so use that event to revert back to whatever image was there On Jan 7, 11:02 am, Glen_H <glen.f.he...@gmail.com> wrote: > In my footer I have a sign where I want it to say one thing regularly, > and then when someone hovers, i want it to say sometyhing else. I > basically made 2 images, and I just want to switch images on the > hover. > > here is my code I used and its not working.: > > $("#footer #footer-contain #availability img").hover(function () { > $(this).attr({'img src' : > './images/avail_hover.png'}); > } > > can anyone help me out with what I need to do?