![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRJUEVpah861gnjyUYyLYjorFqt4YXuMSeSG_UiwegIxU18n2f2BSlhkdmeGzzEX-yXc3tzBg8geOfumBYXPyFqjG1GWH11m2hIkcf_VrJjKxB6XJHqmUvcLRHuHIlX4o5JaAdyN7r2SN7/s1600/load.gif)
<html>
<head>
<style>
.no-js #loader { display: none; }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.preload {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url(load.gif) center no-repeat #fff;
}
</style>
</head>
<body>
<div class="preload"></div>
<script src="js/jquery.min.js"></script>
<script type="text/javascript">
//paste this code under head tag or in a seperate js file.
// Wait for window load
$(window).load(function() {
// Animate loader off screen
$(".preload").fadeOut("slow");;
});
</script>
</body>
</html>
Comments
Post a Comment