document.images[number].src=filename
document.images[name].src=filename
Here's an example:
Change to
dog,
snake,
duck, or
cat.
dog,
snake,
|
Changing the source of an image does not change the size or the placement on the page.
Example of a responsive menu:
This uses the onMouseOver event to change the image displayed and also change the display on the status line.