|
|
||||
![]() | ||||
Syntax: .NAVBAR [NavOff] [BannerOff] [BannerTxt=] [BannerImg=] [BannerWid=] [BannerHt=]
Every page on the main server that uses the Document Interface displays a navigation bar. It consists of three elements, which can be changed or removed:
All parameters of the .NAVBAR command are optional:
Example:
<!--.navbar navoff-->
Example:
<!--.navbar banneroff-->
Example:
<!--.navbar bannerimg="new_banner.gif"
bannerwid=255 bannerht=30-->
Alternately, if you are not using a graphical banner at all, this text will be used, in an approximation of the MHC blue, serif typeface. If there is a default banner for the page, setting this value will override it.
Examples:
<!--.navbar bannerimg="new_banner.gif" bannerwid=255 bannerht=30 bannertxt="What's New?"-->
<!--.navbar bannertxt="What's New?"-->
Example:
<!--.navbar bannerimg="new_banner.gif"
bannerwid=255 bannerht=30-->
Example:
<!--.navbar bannerimg="new_banner.gif"
bannerwid=255 bannerht=30-->
![]()
The document interface looks for two files to decide what default banner to
use on a particular page. The first file is banner.txt. If this
file is present in the same folder as a document, or in one of its parent folders,
the document will have the banner image it describes by default. This is a good
way to add the same banner to a set of pages, without having to use the .BANNER
comand on each one.
The format of a banner.txt file is quite simple. Comments begin
with #, and anything else is assumed to be the banner description.
The banner description must consist of the URL of the graphic file, followed
by its width, height, and alternate text to be displayed when the image is not
loaded.
For example, this is the banner.txt file that appears at the topmost
level of the Web site, /banner.txt:
# Default banner description for this and all child directories. # Whenever an SHTML file does not specify a banner image with the # .NAVBAR or .BANNER command, this info gets used. # # Format: ImageLocation Width Height AltText /grafx/banner_dflt.gif 277 29 Mount Holyoke College
This file tells the document interface to use the image /grafx/banner.gif
by default in any page, in any subdirectory. This image's width is 277 pixels,
and its height is 29.
The other file that is still supported, though not recommended, is .banner.gif.
This file becomes the default banner for the directory it appears in, as well
as any subdirectories. It has several drawbacks which make it undesirable, however:
.banner.gif
file from a network connection to the Web server. This is because files with
names starting with a period are not displayed when using a network connection.
It's possible that you may have a .banner.gif file in a directory
and not even realize it! The only good way to create an image file starting
with a period is to rename (mv) an existing file using Unix.
.BANNER command
in every file for which the .banner.gif gets used. Otherwise,
the document interface assumes the image is 277 by 29 pixels, and it may get
squashed or stretched by the browser.Suffice it to say, it is far easier to use the banner.txt file.
![]()
Home | Directories | Web Email | Calendar | Campus Map | Search | Help
About the College |
Admission |
Academics |
Student Life |
Athletics Copyright © 2004 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Webmaster. Last modified on December 8, 2004. |