У меня есть функция ниже, которая обрабатывает угощение, но вместо того, чтобы щелкнуть по # признакам li.block div , чтобы div вращался;как сделать ссылку с кнопкой класса a.button ?кликабельно, чтобы сделать # признакам li.block div divs spin?
$('#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);
});