OnMouseOver (and OnMouseOut)

This page is adapted from work done by Justin Rodino!

  • OnMouseOver can be used for changing images. Below this is demonstrated. If you go over "A" it will change itself to "B", however if you go over "X" it will change "Y" to "Z".

    Notice, when you leave the image, it returns to its normal form.

  • The next example I am going to show involves two events actually. The OnMouseOver and the Alert. I'll let you try this one before I tell you what it does (see if you think you know what it'll do by the event names before you actually try it). Go ahead and now and go over the link below...

    Don't Go Over Me

    As you see the Alert (Pop-up box) was prompted by you OnMouseOver-ing the link. This could cause a problem though, huh? You can't click on the link, can you? Don't worry, it doesn't go anywhere :-)