beautypg.com

4 fnt parameter – ocs register read font, Fnt parameter – ocs register read font – Horner APG XL4 OCS HE-ETN300 User Manual

Page 75

background image

SUP0740-07

CH.11

11/30/2009

Page 75 of 98

# 958

Note: When

using

an

Internet Explorer browser to view OCS web pages that employ the rfs

parameter, the browser plays the currently configured Start Navigation sound (a short
“tick” by default) for each refresh. To disable the “ticking”, (1) open the Windows Control
Panel
, (2) click the Sounds or Sound and Audio Devices icon or link and (3) turn off
the Start Navigation sound by selecting (None) for it in the drop-down list.


11.5.2.4

FNT PARAMETER – OCS REGISTER READ FONT


Example: fnt-5-arial-blue

The optional fnt parameter specifies the font size, typeface and color to be used when OCS
Register data is displayed on the browser screen.

All 3 font attributes (size, typeface and color) are optional, but must be specified in the order
shown. For example, fnt-5-arial specifies a size 5, Arial font, but will use the browser’s default
text color.

If the size or typeface is omitted, its dash character should still be used as a placeholder. For
example, fnt---blue specifies that the displayed text will be blue, but the browser’s default font
size and typeface will be used. (Note that in this last example, there are 3 dashes between fnt
and blue.)

For the 1

st

attribute (font size), a number from 1 to 7 can be used, with 1 as the smallest and 7 as

the largest. This is a browser limitation, as browsers typically support only 7 font sizes.
Optionally, a point size can be specified, such as 12pt, but the browser will translate this into one
of its supported font sizes.

For the 2

nd

attribute (font typeface), any typeface name supported by the browser can be used,

such as Arial, Times New Roman or Courier New. It should be noted that the Mozilla Firefox
browser is a little more versatile than Microsoft Internet Explorer regarding typefaces. When
testing this feature, it was discovered that Internet Explorer 7 appears to ignore bold and italic
typeface specifiers, while Firefox 2.0.0.7 supports them properly. Therefore, a typeface of Times
New Roman Bold
, will show up as expected in Firefox, but will display as just Times New
Roman
in Internet Explorer.

For the 3

rd

attribute (font color), the 16 standard HTML color names should always work. These

16 standard colors are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive,
purple, red, silver, teal, white and yellow. In addition, most browsers also support the 216 de-
facto standard Netscape color names.

11.5.3 Dynamic Html Files – Writing OCS Register Data (writereg.htm)


OCS Register data is written by placing a

tag, that references writereg.htm, within a
static HTML file. The following example tag sets up an Unsigned Integer write to OCS
Register %R11:


Between the

and
tags, there should be one or more tags that enable a
browser operator to enter or select data and write it to the register.

For example, in the following complete
markup, the first tag creates a text input
box, containing a default value of 0, which allows the user to enter a new value for %R11. The
second tag creates a Send button, which can be clicked to submit the new value (write it
to the register):

This manual is related to the following products: