Weeks 8 and 9


New topics:

Changing pictures: Image rollovers

Reading and writing inputs and pictures:

inputname.value=string (or formname.inputname.value=string )

imagename.src=filename


Assignment #6: Due: Friday March 31st.  Monday, April 3: Create a web page containing three image tags (each containing a different picture), three input fields (each containing a different number) and a button. Whenever the button is clicked, all pictures and numbers move one cell to the left, with the exception of the leftmost elements which move to the rightmost position. 

     Many faces of Aspasia

A fancier (but elegant) swapper

A link to some play with images, inputs and simple scripts.

A link to making a new verb in JavaScript


One example
A slightly different approach
Showing the code and the page side by side