<script language="javascript">
var button = new Image();
var buttonhover = new Image();
var buttonclick = new Image();
// drag the images up and plop then on local disc
button.src="images/button_arrow_.gif";
buttonhover.src="images/button_arrow_hover.gif";
buttonclick.src="images/button_arrow_pressed.gif";
doPreload();
function doPreload(){
var the_images = new Array('images/button.gif','images/button_hover.gif','images/button_pressed.gif');
preloadImages(the_images);
}
function preloadImages(the_images_array) {
for(var loop = 0; loop < the_images_array.length; loop++){
var an_image = new Image();
an_image.src = the_images_array[loop];
}
}
</script>
These images have now been loaded up to the client and cached locally for quick access.
christo