2012-04-03 69 views

回答

1

你好演示這裏http://jsfiddle.net/DV5GU/

我借了你給的鏈接的圖像:P

也有一些有益的想法在這裏駐留:http://jsfiddle.net/jfriend00/eW53L/&這裏:http://jsfiddle.net/vcw8c/

jQuery代碼

$(document).ready(function(){ 
     $('#image1').width(200); 
     $('#image1').mouseover(function() 
     { 
      $(this).css("cursor","pointer"); 
      $(this).animate({width: "300px"}, 'slow'); 
     }); 

    $('#image1').mouseout(function() 
     { 
      $(this).animate({width: "200px"}, 'slow'); 
     }); 
    });​