Forum Moderators: open
onMouseOver="document.imageToChange.src='newImage.jpg'" Tip: Pre-load the image in the <body> tag using the onLoad handler. -- That way, the image changes immediately, rather than downloading it first.
Changing the source of an image is also an excellent way to preview an image in a file input field of a form -- Change the src to the location on the user's file on their local machine and use the onChange handler to set it.
Steve.