简体   繁体   中英

Pre Loader Not Hide after Page Loaded in asp.net

Pre Loader Not Hide after Page Loaded in asp.net. I have tried two javascript code. But not helpfull.

Xaml Code -

<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 -

     <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.
        });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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