Jack Nilan         Javascript Tutorial        EMail : jacknilan@yahoo.com



Lesson 16 - Using onMouseOver and OnClick

We can use onMouseOver and onClick for the same picture or text.

To accomplish this we put the onMouseOver and the onClick in the
same anchor tag.

<a onMouseOver ="document.mainpic.src = three.src"; onClick="window.location=m3.html"> <img src= "threethumb.jpg" border = 0></a>

As you mouseOver the picture we can make a picture in another part of the page change
We can also go to another page (m3.html) if we click on the picture