Hi there!
I'm trying to pre-load my images before the page loads. I'm currently trying a method that doesn't seem to be working. I think it's because CSS compliancy states that only the first instance of a CSS attribute is treated as valid, any following occurrances are ignored. (correct me if I'm wrong!).
If you click the link at the bottom, you'll see why I'm trying to do this.
This is what I'm currently doing:
#preloader
{
width: 0px;
height: 0px;
display: none;
background-image: url(images/back.jpg);
background-image: url(images/header.gif);
background-image: url(images/header1.gif);
background-image: url(images/header2.gif);
background-image: url(images/header3.gif);
background-image: url(images/header4.gif);
background-image: url(images/header5.gif);
background-image: url(images/header6.gif);
background-image: url(images/searchbar.jpg);
background-image: url(images/searchbar2.jpg) ;
background-image: url(images/searchbar3.jpg) ;
background-image: url(images/searchbar4.jpg) ;
background-image: url(images/searchbar5.jpg) ;
background-image: url(images/searchbar6.jpg) ;
background-image: url(images/topmenu.jpg);
background-image: url(images/topmenu2.jpg);
background-image: url(images/topmenu3.jpg);
background-image: url(images/topmenu4.jpg);
background-image: url(images/topmenu5.jpg);
background-image: url(images/topmenu6.jpg);
}
Then calling the div at the end of the page in my html
Link: http://www.macabre.org .uk/global/site4
Can anyone help?
Cheers
I'm trying to pre-load my images before the page loads. I'm currently trying a method that doesn't seem to be working. I think it's because CSS compliancy states that only the first instance of a CSS attribute is treated as valid, any following occurrances are ignored. (correct me if I'm wrong!).
If you click the link at the bottom, you'll see why I'm trying to do this.
This is what I'm currently doing:
#preloader
{
width: 0px;
height: 0px;
display: none;
background-image: url(images/back.jpg);
background-image: url(images/header.gif);
background-image: url(images/header1.gif);
background-image: url(images/header2.gif);
background-image: url(images/header3.gif);
background-image: url(images/header4.gif);
background-image: url(images/header5.gif);
background-image: url(images/header6.gif);
background-image: url(images/searchbar.jpg);
background-image: url(images/searchbar2.jpg) ;
background-image: url(images/searchbar3.jpg) ;
background-image: url(images/searchbar4.jpg) ;
background-image: url(images/searchbar5.jpg) ;
background-image: url(images/searchbar6.jpg) ;
background-image: url(images/topmenu.jpg);
background-image: url(images/topmenu2.jpg);
background-image: url(images/topmenu3.jpg);
background-image: url(images/topmenu4.jpg);
background-image: url(images/topmenu5.jpg);
background-image: url(images/topmenu6.jpg);
}
Then calling the div at the end of the page in my html
Link: http://www.macabre.org .uk/global/site4
Can anyone help?
Cheers
Comment