【发布时间】:2011-07-18 22:09:34
【问题描述】:
我有下面的功能,可以很好地解决问题,但不是单击 #featured li.block div 来使 div 旋转;如何与类按钮 a.button 建立链接?可点击以使 #featured li.block div div 旋转?
$('#featured li.block div').click(function()
{
var f = function($this, count)
{
$this.animate({
top: "-=200"
}, 70, function() {
$this.css('top', '220px').animate({
top: "-=220"
}, 70, function() {
if (count > 0) {
count = count - 1;
f($this, count);
/*if(count == 0) {
if ($this.hasClass('showing')) {
$this.removeClass('showing').addClass('hiding').hide();
}
}*/
}
});
});
};
f($(this), 8);
});
【问题讨论】:
-
当您以问候语开始您的帖子时,它会将有用的信息从问题页面上显示的摘要中推出。我们通常更喜欢信息而不是寒暄。
-
好吧,我只是想打个招呼,不过没关系
标签: jquery function jquery-animate