I would like to do page load event when animation is ende开发者_运维百科d. That's may be pretty simple. Here is my Jquery code
$('#reload span').click(function () {
$('#dl-area').animate('blink', 'fast', null, function () {
location.reload();
});
});
It's not working.
If you want the jQuery UI pulsate effect (based on comment above), make sure you're using jQuery UI (or just the subset you want) and use .effect()
instead of .animate()
(which doesn't take a string as it's first argument), like this:
$('#reload span').click(function() {
$('#dl-area').effect('pulsate', 'fast', function() {
location.reload(true);
});
});
精彩评论