html - Jquery animation img hover and click -


i need combine 2 animations. have checked if can find answer on site , i'm still looking answer. why i'm posting.

here jquery code

$('.bloc-search').on('click mouseover', function () {     $(this).find('.search').attr('src', function(i, val) {         return val.replace('-blue.png','-blanc.png');     }); }); 

it works perfectly. why ? because want "clic out" function. in fact, when user clic on image 1 changing when i'm clicking again want comes original one.

like search button on website : http://www.sony.fr/

sorry english i'm not bilingual ;-)

thank help


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -