Reputation: 54113
I'm trying to preload my images but it's not working. in my main stylesheet I created #preload and then in my html I created a preload div. In the css I did the background method to try to preload them but it doesn't work.
Upvotes: 1
Views: 227
Reputation: 518
You can accomplish this with Javascript
<SCRIPT language="JavaScript">
<!--
if (document.images)
{
pic1= new Image(100,25);
pic1.src="http://someplace.com/image1.gif";
}
//-->
</SCRIPT>
Upvotes: 1