First question using stackoverflow! yay!
I have a site I’m developing. It uses images as the menu options, and on hover, I’ve changed the img src in jquery
When you click the menu you want to go to, i want the image on hover to stay there.
I did this:
$("#one").click(function(){
$(this).attr('src', 'images/hover1.jpg');
$(this).unbind('mouseleave mousehover');
So this is successful but the upon another menu click, i cant get the hover image to go away, and then it doesnt hover anymore (cause i unbinded it) – but binding it upon another menu click wasnt working.
Any suggestions?
First of all. I think its recommend to create a CSS solution here.
I checked out your javascript file and did some modifications in my browser. Finally I build you a possible working solution.