欢迎光临
我们一直在努力

jquery实现加载页面加载等待效果

jquery实现加载页面加载等待效果,直接上代码,粘进html文件即可直接运行,如不能运行,请检查jquery引用是否正确。你可以将background url换成你自己的。其中包含jquery扩展方法preloaderFadeOut,调用方法$.preloaderFadeOut(time);

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>加载效果显示</title>
    <meta name="HandheldFriendly" content="True">
    <style>
        body{margin:0;padding:0}
        #get-preloader{position:fixed;z-index:2500;top:0;left:0;right:0;bottom:0;background-color:#fff;z-index:999999}
        #get-boy {
            height: 100%;
            background: url('data:image/gif;base64,R0lGODlhcACPAPeCAOwgIH9cQWxTQZZ1UwYFBGVQQBUSDlpLQHJWQREKCGBNQN+1hDgvJIFdQiwkG4ZZQK6JY4VhRYZjR6uFYNmwgSMdF3xkSh0YEtuygnhZQUQ4K5AQEIJfRLiVbYhtUN2zg3VeR0s+MIpmSsOccuEmI7WRauEeHrUWFoJaQNSrfc+neqlGNbekllpJNsmidlFBMKJ8Wr6acYNpTqaAXs2leKKDYG1YQ7msop1/XbGOZ5J2V4xpTcafdNevgEsFBYxxU2VSPNWtfpJTPV9NOHBbQ4lXPp9OOaeRgNGpfFdGM76Xbpt0U5l7XGcJCbU/Mce6r9euf5V5WMQZGaeIY+Ld2JVwULQ/Mc6oe1NEMpBrTdzTzPr6+Z14VpJzWpFxUq+aiHxbQVJFPdbMxc8wKYaGhc4wKfDs6ZBtUM/EvJl9Z5RyVfXz8qWMd+zo5Zh3WvPw7+nj36KGcIpeQ9Coeo1hRp2AaXp6eklJSZBvVVpaWpFXP9jV05NZQGskG1VIQP///wAAAOC2hf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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rMu77BE8+wCxXBQBAQA7') no-repeat center;
            background-size: 30%;
        }
    </style>
</head>
<body>
<div id="get-preloader">
    <div id="get-boy"></div>
</div>
<div id="test">页面加载等待效果</div>
<script src="http://apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
    (function ($) {
        $.extend({
            preloaderFadeOut: function (time) {
                time = time || 300;
                $("#get-wattingman").fadeOut();
                $("#get-preloader").delay(time).fadeOut("slow");
            },

        });
    })(jQuery);
    (function ($) {
        $(window).load(function () {
                    $("#get-wattingman").fadeOut();
                    $("#get-preloader").delay(300).fadeOut("slow");
                }
        )
    })(jQuery);
</script>

</body>
</html>

 

赞(0)
版权归原作者所有,如有侵权请告知。达维营-前端网 » jquery实现加载页面加载等待效果

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址