README.md

December 4, 2022 ยท View on GitHub

Image Preloader

Description

An Image Preloader preloads images to a web-page viewers hard drive before they need the picture. In other words, no more waitng for those darned mouseovers!

Please Rate My Work!!!!

More Info

Submitted On
Byunholy-slacker
LevelBeginner
User Rating5.0 (25 globes from 5 users)
Compatibility
CategoryControls/ Forms/ Graphics/ Menus
WorldJava
Archive File

Source Code

<html>
<script language="javascript">
function doPreload()
{
	// you chg all the images in this array to the ones you want to preload
	var the_images = new Array('image1.gif','image2.gif','image3.gif');
	preloadImages(the_images);
}
function preloadImages(the_images_array) {
	for(loop = 0; loop < the_images_array.length; loop++)
	{
  		var an_image = new Image();
		an_image.src = the_images_array[loop];
	}
}
</script>
<body onLoad="doPreload();">
put your mouseovers here
</body>
</html>