简体   繁体   English

在asp.net中加载页面后,Pre Loader不会隐藏

[英]Pre Loader Not Hide after Page Loaded in asp.net

Pre Loader Not Hide after Page Loaded in asp.net. 在asp.net中加载页面后,Pre Loader不会隐藏。 I have tried two javascript code. 我尝试了两个JavaScript代码。 But not helpfull. 但没有帮助。

Xaml Code - Xaml代码-

<script type="text/javascript">
        jQuery(window).load(function () { // makes sure the whole site is loaded
            jQuery("#status").fadeOut(); // will first fade out the loading animation
            jQuery("#preloader").delay(1000).fadeOut("slow"); // will fade out the white DIV that covers the website.
        })
</script>

<body >
    <div id="preloader">
          <div id="status">&nbsp;</div>
    </div>

Coding...

Xaml Code - Xaml代码-

     <script type="text/javascript">
            function hide_preloader() {
                $("#preloader").fadeOut(100);
            }
    </script>

    <body onload="hide_preloader();" > 
        <div id="preloader">
              <div id="status">&nbsp;</div>
        </div>
..CODEING...

Image 图片 在此处输入图片说明

Try 尝试

jQuery(document).ready(function () { // makes sure the whole site is loaded
            jQuery("#status").fadeOut(); // will first fade out the loading animation
            jQuery("#preloader").delay(1000).fadeOut("slow"); // will fade out the white DIV that covers the website.
        });

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM