README.md
December 4, 2022 ยท View on GitHub
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 | |
| By | unholy-slacker |
| Level | Beginner |
| User Rating | 5.0 (25 globes from 5 users) |
| Compatibility | |
| Category | Controls/ Forms/ Graphics/ Menus |
| World | Java |
| 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>