JAVA SCRIPT
for on mouseoverWe 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= |
|
|
|
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:
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 " 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!