|
|
|
|
|
|
|
|
|
|
|
|
|
When
HTML draws a page, the images
|
|
|
go in
an array: document.images
|
|
|
|
• |
Recall, arrays are names w/ indexes, like A[1]
|
|
|
|
• |
Each element of document.images array
|
|
|
holds one image
|
|
|
|
• |
Pictures are put into document.images in the
|
|
order encountered on page build … so for
|
|
|
Test Page, document.images[0]Ûnew0.gif
|
|
|
|
• |
Changing the .src property of the array
|
|
|
changes the picture
|
|