开发者

Jquery animation after complete page loaded

How to do an animation after a page(images and everything) completely loaded with Jquery.( like please wait screen before a page is loading)

Thank You

Update:

I need to hi开发者_运维问答de everything in the page and once everything loaded then only the page has to be show.


$(window).load(function(){
  $('#loading').fadeOut('fast');
});

fadeOut() can be changed to antything you want.


Isn't that what the $(document).ready(function(){ /*something*/ }); is all about?


if you want to preload images. refer http://ditio.net/2010/02/14/jquery-preload-images-tutorial-and-example/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜