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"> </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"> </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.