Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In css:
- #preloader {
- left: 0;
- right: 0;
- bottom: 0;
- background-color: #fff;
- z-index: 9999;
- }
- #preloader {
- position: fixed;
- top: 0;
- }
- #status {
- width: 200px;
- height: 200px;
- position: absolute;
- left: 50%;
- top: 50%;
- background-image: url("YOUR PREALODER.gif");
- background-repeat: no-repeat;
- background-position: center;
- margin: -100px 0 0 -100px;
- }
- In html:
- <div id="preloader">
- <div id="status"> </div>
- </div>
- In js:
- jQuery(window).load(function() {
- jQuery('#status').fadeOut();
- jQuery('#preloader').delay(350).fadeOut('slow');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement