wanwanshixun.comtem" href="/ebook/pdf/brochures/" id="item3" > wanwanshixun.comm" href="/ebook/pdf/report/" id="item4" > wanwanshixun.com href="/newspaper/92/" id="item5" > wanwanshixun.comurr" href="/magazine/103/" id="item6"> $(document).ready(function(){ booksWidth = $("#books").width()*3/16 $("#books .item img").width(booksWidth) $("#books").height($("#books img").width()*166/496) $("#books .item").width(booksWidth/3) $("#item6").width(booksWidth) $("#books .item").hover(function(){ if ($(this).hasClass("curr")){ return } $(this).animate({width:booksWidth+"px"},"slow").addClass('curr').siblings(".curr").animate({width:booksWidth/3},'slow').removeClass('curr') },function(){}) $("#books").width($("#books").width()*1.1) })