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
Post a Comment