mouseon 放大圖片

HTML:

< img src="image.png" width="90%" class="resizableImage" >

JQUERY:


$('.resizableImage').hover(makeBigger, returnToOriginalSize);
function makeBigger() {
     $(this).css({height: '+=10%', width: '+=10%'});
 }
 function returnToOriginalSize() {
     $(this).css({height: "", width: ""});
 }

PHP & ajax

$.ajax({
url: '//www.gocar.idv.tw/tset/test.php',     
cache:false,      
async:false,     
type: "POST",     
dataType: 'json',     
data: '&key='+key ,     
success: function (data) {          
    $.each(data, function(index, val) {                   
    });
}, error:function(msg){         
      alert('錯誤!'+msg);     
    } 
});