【发布时间】:2011-12-16 04:00:50
【问题描述】:
我需要第二次点击功能返回 (-=550px)。就像现在一样,图形还在继续。
代码如下:
$(document).ready(function(){
$("#busoptbio").hide();
$("#current").click(function() {
$("#busoptbio").show();
$("#busoptbio").animate({left: '+=340px'}, 1200);
return false;
});
$("#busoptbiolnk a").click(function(){
$("#busoptbio").animate({left: '+=550px'}, 1200);
}, function() {
$("#busoptbio").animate({left: '-=550px'}, 1200);
return false;
});
});
感谢您的帮助。
【问题讨论】:
标签: jquery function jquery-animate return