FIGjsTable of Contents
FIGjs javascript package. delivers links and creates HTML code for mouseover infomouseover()FIGjs javascript package. delivers links and creates HTML code for mouseover infousage: mouseover($title, $info, $menu)creates a tooltip with title = $title and $info <HTML text>
can be plugged in to any html
examplepush(@$html,"<area shape=\"rect\" coords=\"$coords\" href=\"$link\" ".&FIGjs::mouseover( "Peg info", $object->[6]).">\n");mouseover()Generate a mouseover for your code.You can use it like this:
push @$html, "<a " . FIGjs::mouseover("Title", "Body Text", "Menu", $parent, $title_bg_color, $text_bg_color) . " href='link.cgi'>a link</a>";and the appropriate javascript will be added for you.Title: The title of the popup that appears in bol
Body Text: The text to appear in the box
Menu: This is probably the alternate menu that appears on the pinned regions page??Please note these should be HTML code so <b>text</b> will appear as bold. Also, please don't put linebreaks in the text since that breaks everything
The text strings supplied must already be HTML escaped (< or & will be treated as HTML, not text).$parent is whether to place the box under the cursor or elsewhere on the page (e.g. top right corner
Please note that there is an error at the moment and the value of parent doesn't affect anything.
Note also that I (RAE) didn't add this, but I have left it here for compatability with mouseover calls that expect it to be here.$title_bg_color is the color of the background for the title. The default blue color is #333399. Please include the # in describing the colo
$text_bg_color is the color of the body of the text. The default body color is #CCCCFF. Please include the # in describing the colorYou don't need to supply the default colors, but can make the box red or green if you like.