Special Effects using JavaScript
onMouseDown
Roll your mouse over the images above. Then click one to see the 3rd image when the Mouse is clicked. Just like in Rollovers when a simple JavaScript code first "Preloads" all the images, and the next part of the code defines the "Rollover Function", and the third part of the code puts it on the page, this simply adds another function to the script. Notice that in the <HEAD> tags, there is 2 more additional sections of code, the part that Preloads the third image, and then the MouseDown function is defined. And also in the "BODY" itself where the images are first called there is an added line to call the onMouseDown function.