//鼠标移入移出,改变图片大小
$(document).ready(function(){
    $('#large').mouseenter(function(){    
         var wValue=1.5 * $(this).width();    
         var hValue=1.5 * $(this).height();          
         $(this).stop().animate({width: wValue,    
                         height: hValue,    
                         left:("-"+(0.5 * $(this).width())/2),    
                         top:("-"+(0.5 * $(this).height())/2)}, 1000);    
     }).mouseleave(function(){    
         $(this).stop().animate({width: "100",    
                                      height: "80",    
                                      left:"0px",    
                                      top:"0px"}, 1000 );    
     });
 });

 

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
猜你喜欢
  • 2021-07-07
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-12-26
相关资源
相似解决方案