Noob Flash Rss

How to Preload Images with CSS

1

Posted by Aaron | Posted in CSS | Posted on 31-01-2010

This is a simple way to preload a few images using only CSS.

#imagePreload {
       display: inline;
       height: 0px;
       width: 0px;
       background-image: url(imagePath1.extension);
       background-image: url(imagePath2.extension);
       background-image: url(imagePath3.extension);
       background-image: url(imagePath4.extension);
       background-image: url();
}

Related posts:

  1. Set Style Dynamically With JavaScript

Comments (1)

That’s hot.

Post a comment