I found out how to preload images easily. There are a lot more ways to do this as well, here's one:
Quote:
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from none JavaScript Browsers
Image1= new Image(width,height)
Image1.src = "URL TO YOUR IMAGE"
Image2= new Image(width,height)
Image2.src= "URL TO SECOND IMAGE"
// End Hiding -->
</SCRIPT>
|
There ya go - it's just that easy, and you can just increment the image number to add more images. The width and height can be left blank like so New Image() as well if you want.
Becareful if you're preloading a lot or large images, you can make your site take seemingly much longer on the initial load.
Later!
Whoops.. forgot to yell ya to put that in your headerinclude area as well... but I figured you would know that if you got this far in the thread.