Web zagzag.tk

    
 

 

Welcome In HTML Course:-
Back To Advanced index

 JavaScript

Mouseover

This page will teach you how to use JavaScript's onMouseOver command to put a word or phrase in the status bar (on the bottom of a browser) when your mouse if over a specific object. To see an example of one, put your mouse over this link and look at your status bar.

Putting this effect on your web pages is easy to do. You only need to use a couple commands:

onMouseover="window.status='Put text here';return true"
onMouseout="window.status=' ';return true"

The first command will put the text you define into the status bar when you put your mouse over a object you define. The second command will clear the status bar when your mouse leaves the object. The object can be many things, but most often, it is a image or a link. Here is an example of the full code for both of these situations:

 



Back To Advanced index

     



Copyright © [2006 - 2007] [Eagles Group]. All rights reserved