I'm thinking of using javascript to display a larger popup picture when the mouse hovers over a thumbnail version. Problem is there will be quite a few thumbnails on the page and downloading all the larger images will take a long time.

If the img src is in a javascript function will this only retrieve the image when the mouseover triggers the function call?