Hi, I cliped this and mofified it to be used in a mouse_over to change
the background of text. This is supposed to pre-load the image on
mouse over but it don't!
<script language="Javascript">
function ImgPreLoad()
{
var my_images_array = new Array ('ltrhome.jpg', 'ltrabout',
ltrphoto.jpg', 'ltrmap.jpg', 'ltreq.jpg', 'ltcont.jpg');
LoadmUp (my_images);
}
function LoadmUp (my_images_array)
{
for (loop = 0; loop < my_images_array.length; loop++)
{
var one_image = new Image();
one_image.src = my_images_array[loop];
}
}
</script>
Arne Vajhøj - 06 Aug 2007 15:48 GMT
Mr.G (@¿@) wrote:
> Hi, I cliped this and mofified it to be used in a mouse_over to change
> the background of text. This is supposed to pre-load the image on
[quoted text clipped - 18 lines]
> }
> </script>
Try ask in a JavaScript group.
Arne
Thomas Fritsch - 06 Aug 2007 15:53 GMT
> Hi, I cliped this and mofified it to be used in a mouse_over to change
> the background of text. This is supposed to pre-load the image on
> mouse over but it don't!
>
> <script language="Javascript">
[...]
> </script>
In spite of their names "Java" and "Javascript" are completely different
languages. The group you want is "comp.lang.javascript", but not this
group.

Signature
Thomas