开发者

Jquery "Open url after function completet"

开发者 https://www.devze.com 2023-02-11 13:41 出处:网络
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.

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

精彩评论

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

关注公众号