I use the following to preload images
and the following for rollovers
code:<HR>Code:if (document.images) { image1 = new Image(); image1.src = "images/1.gif" <P>image2 = new Image(); image2.src = "images/2.gif" }
and the following for rollovers
In the body of the page, when i put this therecode:<HR>Code:function swap(image, image_src) { image.src=image_src; }
it does not work. Help appreciatedcode:<HR>Code:href="some_url" onMouseOut="swap(image, 'images/out.gif');" onMouseOver="swap(image, 'image1');"