开发者

How can I make an animated gif appear when the site is loading and disappear after it's done loading?

I've been using the plugin in here: http://contextllc.com/tools/jQuery-showLoading which works perfectly when it's an ajax request or any other element interaction bu开发者_运维问答t how to get the animation appear when the site is first loading and have it disappear after it finishes loading?


You can use javascripts onLoad event to show the animation and jquery .ready()-function to remove it. More about onload event and more about .ready()-function

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜