Hello I'm working on this page where i wan't to open a url after the animation is completet.
I have this but it dosen't seem to work. I'm tottaly new in Jquery.
$('h1').click(function() {
$(this).parent().animate({
"width" : "100%",
"height" 开发者_StackOverflow中文版: "900px"
}, function() {
$(this).load('index2.html');
});
Try with:
$('h1').click(function() {
$(this).parent().animate({
"width" : "100%",
"height" : "900px"
}, { complete: function() { $(this).load('index2.html'); }
});
精彩评论