onMouseDown in JavaScript


Download Some Cool Website Software Now !
This site designed with Coffee Cup HTML Editor++ ver. 6.2

HTML Tutorial
JavaScript Examples
Rollovers
MouseDown
JS Clock
CountDown
Status Window
Status Window 2
Random Image
JS Cookies
Background Changer
Scrolling Banner
Members Area

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.

It looks like this:

Recommended Books
Ceate Your First Web Page: In A Weekend Building Better Web Pages Advanced HTML Companion HTML Web Magic Javascript CD Cookbook Core Web Programming

Top of Page?



Download Some Cool Website Software Now !