I am trying to enlarge the images when mouseover and reduce the size back to normal after mouseout. I have the following:
$('#image img').live("mouseover", function(){
var $this=$(this);
$this.attr('width','25%');
$this.attr('height','25%');
})
The enlarging part works fine but I am not sure how to reduce the size after mouseout. Also, I think my codes are bit ugly and not sure how to fix it. Thanks a lot.
Try this: http://jsfiddle.net/FPKAP/11/ or using hover: http://jsfiddle.net/FPKAP/12/
When you will hover over the HULK it will zoomin and on mouse out zoom out.
This should help the need, lemme know if I misunderstood anything please,
:)code
code