Change image on mouse hover effect with jquery
June 8, 2011 | In: JQuery
This is possible to many way change image on mouse hover effect like javascript. But it will take time and much coding compare to do with jquery. This is very easy to make mouse hover effect with jquery.
How to change image mouse over effect with jquery
we first need to add the jquery library script
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<img src="logo.png" alt="juswebdevelopment" class="logo" />
This is jquery function for shows change hover effect
<script type='text/javascript'>
$(document).ready(function(){
$(".logo").hover(
function() {$(this).attr("src","logo-hover.png");},
function() {$(this).attr("src","logo.png");
});
});
</script>
This function is working with image class=”logo”. When mouse hover on class logo that time its call this function and change the image as per code.




2 Responses to How to submit form without refreshing page with jquery and ajax
hostgator coupons
February 11th, 2013 at 7:56 pm
Thanks for finally talking about > Change image on mouse
hover effect with jquery | JQuery Development | Web Development India < Loved it!
mobilanpassning
May 18th, 2013 at 7:40 am
This is really attention-grabbing, You are an overly skilled blogger.
I’ve joined your feed and sit up for seeking extra of your excellent post. Additionally, I’ve shared your
website in my social networks