var myhref = $(this).attr("href"); $("#box").animate({left: "-=100%"}, 500, function(){$('#load').load(myhref);})