JAVA SCRIPT for on mouseover

We are not going to get into the powerful but complicated javascripting language, but there's one simple addition that we think adds a nice touch.

Ever notice how the bottom header bar of your browser usually shows the linked URL when your mouse passes over a link? That bottom header can show a readable message, if you'd like! Here's how:

Within an <A HREF=...> statement, just add:
onmouseover="window.status=´(message)´; return true"

To help make sure you're aware of spaces and punctuation, in words it's:

onmouseover=
quotationmark window period status=
apostrophe your message apostrophe semicolon space
return space true quotationmark

 


As is always the case, be sure that this element is separated by a space from other elements within the <A HREF=...> tag.

 

For example, let's look at the link html:
<A HREF="http://www.primeshop.com">See the javascript discussion!</A>
Now, let's add the message, "An easy javascript enhancement!" to the window by adding the javascript code:

<A HREF="http://www.primeshop.com" onmouseover="window.status=´An easy javascript enhancement!´ ; return true">

 

Finally, let's erase the message when the mouse leaves the link by adding the onmouseout tag:

<A HREF="http://www.primeshop.com" onmouseover="window.status=´An easy javascript enhancement!´ ; return true" onmouseout="window.status=´´ ; return true">

 

FURTHER EXPLANATION:
In the example above, see that both the quotation marks and apostrophes are used within the javascript command. The quotation marks open and close the command, while the apostrophes segregate the intended message. If you were to place an apostrophe or quotation mark within the body of your message, the browser would erroneously interpret that as a part of the Javascript command.

For example, if you wanted your message to include quotation marks as in the expression

Here is the "Stargazer" page.,

then you'd enter the included quotation marks with the ASCII symbol code of &#34; and not with a typed-in quotation mark.

For any browser, be aware of the semicolons as the last figure in the HTML3&4 codes - they are not punctuation, they're part of the code!