This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Image preloader using CSS

This is a simple tutorial which helps you to put a preloader similar to flash preloaders on your website :) interesting huh , just check out this simple tutorial of how to implement the same.Just needed to add some 5 lines of code using css and your image preloader is ready.This is very useful when your website uses high resolution images or bigger size images.

Now You can use larger images and show preloader first .

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="loader">
<div id="top"></div>
</div>
<div id="content"></div>
</div>
</body>
</html>

Save it as preloader.html
You can use any image, just make it “large” … 120kb for example, and call it top.jpg. Last thing is loader.gif file. It can be any image.

CSS PART

* {margin:0; padding:0;}
div#container {width:770px; margin:0 auto;}
div#loader {background:url(loader.gif) center no-repeat;}
div#top {height:250px; background:url(top.jpg) no-repeat;}
div#content {height:550px; background-color:#3300FF;}

Save it as style.css

Special thanks to bwebi

VN:F [1.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Caching of images using javascript image object
  2. Transparent Box using CSS
  3. Appending string using php to a text file
  4. Simple XML Reading Using PHP
  5. Arrays In PHP
  6. Php mysql example image gallery blob storage
  7. Simple Javascript Slideshow

Leave a Reply

Comments (required)

Spam Protected