UserLand Software
Powerful, cross-platform web scripting.
 

Frontier 5: Standard Macros

Frontier Web Reference

Frontier for Windows Folder

Frontier for Macintosh Folder

Icons

Fat Pages

Outlines

Web menu

New Website...

Directives

PageHeader Attribute

Standard Macros

Tips and Tricks

Keyboard Commands

Useful Things

Site Source

What they do and their parameters.

{bgImageRef ()}
Called by {bodyTag ()}
Returns the url of the specified image.
Use with the PageHeader Attribute
Example: {"<body " + bgImageRef ()>"}
Parameter: #background
name of the background graphic
{bodyTag ()}
Builds a body tag, with background image, bgcolor, and text and link colors.
Put this macro in your PageHeader Attribute, as {bodyTag ()}.
Parameters:
bgcolor, text, link, vlink, alink, background
Note: {bodyTag ()} calls the {bgImageRef ()} macro, so you don't have to.
{bodytext}
Rendered contents of web page is embedded in the page at the location of {bodytext} in the template.
{imageRef ()}
Creates the graphic on the disk in an images folder.
Creates an <img> tag with width, height, border="0" and alt="graphic_name picture"
Syntax: example {imageRef("graphic_name", explanation:"My Graphic", border:"2", align:"right")}
Parameter: graphic_name
Optional Parameters:
explanation = text for the alt tag, Default: "graphic_name picture"
height & width, Default: actual pixel size of graphic
border, Default: 0
hspace & vspace
align
glossRef
Creates a relative link for the graphic using a glossary entry.
Syntax: {imageRef("graphic_name", glossRef:"glossary_item")}
usemap
ismap
pageTable
lowsrc
rollsrc
name
id
{glossSub ("glossary_entry", "text")}
Performs the string processing to replace the normal text in the link with the text you specify.
Parameters:
glossary entry
text = the text to appear in the link
{outlineSite ()}
Creates an outline of all pages within the same website table including pages stored in subtables.
#siteDefaultName
Used to over-ride #defaultFileName
#subText "string"
Adds a description line to the page's entry in the outline.
#siteOutlineHeadFont
Specifies an entire <font> tag to be used when displaying the page's title in the outline.
#siteOutlineSubtextFont
Specifies an entire <font> tag to be used when displaying the description of a page in the outline.
{pageheader (title)}
Parameters: #bgcolor, #text, #link, #vlink,#alink
Additional Parameters
#javascript
#metaAuthor
#metaDescription
#metaEquivRefresh
#metaKeywords
To provide more control over the contents in the <head> tag, refer to the PageHeader Attribute
{pagefooter ()}
Adds </body> and </html> to the end of the published page.
{spacePixels ("pixels", "orientation")}
Creates a transparent gif called "space.gif"
Parameters:
pixels = the width or height of the gif in pixels by 1 pixel
orientation = horizontal or vertical (this parameter is optional)
Default: horizontal
{title}
Contents of #title is embedded in the page at the location of {title}

   


 
Site Scripted By Frontier
© Copyright 1996-98 UserLand Software. This page was last built on 2/20/98; 2:11:39 PM. It was originally posted on 1/19/98; 3:36:00 PM. Webmaster: thea@scripting.com.