filsa.net: Frontier / Scripts / Linking Macros / MouseOver
This is part of Phil's Script Archive

UPDATED: Ready for Frontier 5!

MouseOver

A shortcut for the most common use of JavaScript mouseOvers


This fat web page contains the mouseOver script object.

Use the 'Get Page Data' command from the Scripts menu to copy mouseOver into your object database.

Also available: info about fat pages and the Terms under which you can use this script.

The most common use for the onMouseOver event handler in Javascript is probably displaying more detailed info on a link in the status bar.

This script makes it very simple to do so from Frontier. It takes two parameters:

on mouseOver (glossSpec, msgText)

glossSpec is a valid glossary entry. It can also be a [[\#glossPatch string or a full <a> tag. If the glossSpec can't be found in the glossary, it is returned in double quotes.

msgText is the text that you want to show up in the status bar when the cursor is over this particular link.

An example

Here's an example of how it works. Take a look at this link to Frontier.

If you have a browser that supports Javascript, you should see a message in your status bar when you pass the cursor over the link.

The link was generated with this code:

{mouseOver ("Frontier", "Follow this link to go to the Frontier Community Center.")}.

Requirements

This script requires the hardworking glossPatcher script.

The glossImageRef script has been updated to support mouseOvers, so this script is now necessary for glossImageRef to work properly.

View the Source: user.html.macros.mouseOver


© copyright 1997-98 by Philip Suh. Comments are appreciated.
This page last updated on 1/11/98; 1:13:13 AM.
<http://www.filsa.net/frontier/scripts/LinkingMacros/mouseOver.html>
filsa.net: Frontier / Scripts / Linking Macros / MouseOver