Next: The SUB and SUP Tags
Up: WebEQ Math Tags
The <APPLET> Tag
WebEQ is invoked with a standard Java <APPLET> tag. The following
example shows all the options.
<APPLET CODEBASE=../bin CODE=WebEQ.class HEIGHT=150 WIDTH=200 ALIGN=MIDDLE>
<PARAM NAME=size VALUE=24>
<PARAM NAME=color VALUE=0xffffff>
<PARAM NAME=href VALUE="../welcome.html">
<PARAM NAME=line1 VALUE="&sum_j=1_^&infty;^ <BOX> 1 <OVER>">
<PARAM NAME=line1 VALUE="2^j^ </BOX>">
<APPLET>
- CODEBASE -- the codebase specifies the directory on your
system where you installed WebEQ. If you refer to a common WebEQ
directory from a collection of related pages, Netscape seems to do a
better job of caching the necessary class files, minimizing download
delays.
- CODE -- the name of the main WebEQ class file.
- HEIGHT, WIDTH, ALIGN -- these are the standard HTML IMG tag
parameters. They determine the size and placement of the WebEQ applet
window. Unfortunately, Netscape does not allow an applet to retsize
itself dynamically. However, when the WebEQ applet is initialized, it
will write the dimensions of its bounding box to the Java console.
When designing web pages, an author can go back and edit the height
and width to match the bounding box. This is useful in conjunction
with ALIGN=MIDDLE for in-line equations. WebEQ places the baseline of
the equation on the centerline of the applet window (of the appropiate
dimensions) thus enabling fairly reasonable in-line equation
placement.
- color -- this parameter controls the applet background
color. The color is specified in the form
0xrrggbb
where rr
, gg
, bb
are two
hexidecimal digits specifying the red, green and blue color values.
- size -- this parameter controls the base point size of the
equation. In a perfect world, Netscape would allow an applet to query
the browser to determine the user selected ambient pointsize. We
don't live in a perfect world. The allowable choices are
8,10,12,14,16,18,24 and 36. Other values are rounded.
- href -- this parameter specifies a URL link for the
expression. That is, when the reader clicks on the expression, the
browser will load that page. The URL is relative to the location of
the current document, or an absolute URL beginning "http://".
- line1, line2, etc -- WebEQ will accept any number of lines of HTML
input. Each must be sequentially numbered.
Next: The SUB and SUP Tags
Up: WebEQ Math Tags
The Geometry Center Home Page
Comments to:
rminer@geom.umn.edu
Created: Fri Sep 8 11:39:00 1995 ---
Last modified: Thu Mar 28 11:26:20 1996