开发者

Jquery "Open url after function completet"

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'); }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜