skip to main | skip to sidebar

The Complete Introduction To JavaScript E-Learning

Sunday, December 9, 2007

Working with dates

The onMouseOver- property

In the online version of this document you can see a link where you can move your mousepointer over. This causes a text to be written to the statusbar. You can combine this with other JavaScript functions as well. Another example shows that you can call an alert- message box when moving over a link. Here is the code for the first example:

The only thing you have to do is to add the onMouseOver- property to your - tag. The 'window.status' will allow you to write things to the statusbar of your web-browser. As you can see you have to alter with the quotes. You cannot use " all the time, because otherwise JavaScript is not able to identify the string you want to print to the statusbar. After the string you have to write ;return true.

The second example uses JavaScript by calling the alert- function. Here is the code:

link

This is quite easy. It uses the onMouseOver- method and the function hello() is called when this event occurs.

Posted by Joe Cochran at 10:30 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2007 (24)
    • ▼  December (24)
      • Submitting forms
      • Validating form input
      • Operators
      • Creating a new window when a link is taken
      • Loading two pages with one mouse click
      • History- functions: Creating 'back' and 'forward' ...
      • Clearing a window ot frame
      • Working with arrays
      • Programming a scroller
      • Working with timers
      • Writing to the statusbar
      • JavaScript and frames
      • Hints and Bugs concerning document.write and images
      • Creating windows
      • Random numbers
      • More date- functions
      • Working with dates
      • Working with dates
      • Let's get started
      • How can JavaScript scripts be run?
      • What is the difference between JavaScript and Java?
      • What is JavaScript?
      • Overview over the different parts
      • Introduction To Java Script

About Me

Joe Cochran
View my complete profile