1
這個工程:問題與jQuery寬鬆/動畫
function prodLanding(){
$("#productsLanding").animate({opacity: 'toggle', width: 'toggle'}, function(){
$("#productsAll").show('slide', {direction: 'left'}, 800);
});
}
$("#prodLandSelect .prod1").click(function(){
$('#product1').load('products/chicken-jerky/index.html', function() {
prodLanding();
});
return false;
});
但這並不:
function prodLanding(){
$("#productsLanding").animate({ left: 200 }, {duration: 'slow', easing: 'easeOutElastic'}, function(){ $("#productsAll").show('slide', {direction: 'left'}, 800);});
}
$("#prodLandSelect .prod1").click(function(){
$('#product1').load('products/chicken-jerky/index.html', function() {
prodLanding();
});
return false;
});
任何想法我做錯了嗎?
我有jQuery UI核心效果。 – Yahreen
我想通了:我不得不將div設置爲相對 – Yahreen