Source Code for user.html.macros.glossImageRef
on glossImageRef (imagespec, glossspec, imgAlign="", imgHSpace="", imgAltString="", targetName="", mouseOver="") {
«Wed, Jun 4, 1997 at 7:38:15 AM by PS
«Docs at the Script Archive
«http://www.filsa.net/frontier/scripts/
«Thu, Jul 31, 1997 at 11:12:00 PM by PS
«Added support for targeting via glossTarget
«new parameter: targetName
«if targetname is not a null string, target processing
«is performed
«Wed, Aug 27, 1997 at 8:16:59 AM by PS
«added support for mouseOverEvents
«this requires the mouseOver script,
«available from the Script Archive
«Sun, Nov 8, 1998 at 9:22:51 AM by PS
«update to use imageRef
«Fri, Jan 8, 1999 at 4:39:53 PM by PS
«updated how we get adrpagetable to work with 5.1.5
local {
glossString;
imageString;
textToReturn;
t}; «temp
local (adrPageTable);
«adrPageTable = @html.data.page «if you're using Frontier 4.2.3, uncomment this!
try {
adrPageTable = html.getPageTableAddress ()}
else {
try {
adrPageTable = html.data.adrpagetable} «and comment out this line!
else {
adrPageTable = @websites.["#data"]}};
html.setpagetableaddress (adrPageTable);
glossString = html.refGlossary (glossspec);
if glossString beginsWith "[[#glossPatch " { «relative glossary
glossString = glossString - "[[#glossPatch ";
t = string.nthfield (glossString, "|", 1);
if imgAltString == "" {
imagAltString = t};
glossString = string.delete (glossString, 1, sizeOf(t));
imageString = html.data.standardmacros.imageRef (imagespec, imgAltString, imgHSpace, imgAlign);
textToReturn = "[[#glossPatch " + imageString + glossString;
textToReturn = user.html.macros.glossPatcher (textToReturn)}
else { «a regular glossary
local {
aBeginTag;
theResult};
aBeginTag = string.nthField (glossString, ">", 1) + ">";
glossString = string.delete (glossString, 1, sizeOf (aBeginTag)); «7/14/97 Bug fix--was sizeOf (aBeginTag) -1)
if imgAltString == "" {
imgAltString = string.nthField (glossString, "<", 1)};
imageString = html.data.standardmacros.imageRef (imagespec, imgAltString, ImgHSpace, imgAlign);
textToReturn = aBeginTag + imageString + "</a>"};
if targetName != "" { « Jul 31, 1997 by PS (targetting support)
return (user.html.macros.glossTarget (textToReturn, targetName))};
if mouseOver != "" { «Aug 26, 1997 by PS (Javascript Mouseover support)
return (user.html.macros.mouseOver (textToReturn, mouseOver))};
return (textToReturn);
};
glossimageRef ("filsaNetbluesmall", "filsa.net", "middle", "", "[filsa.net]", "", "Back to filsa.net Home");
Go back to the main page for this script