|
Sybernet / Supplied Procedures Reference
Release 3.00 Apr 17, 2005 |
|
This procedure is used to build your HTML body tag. The original theory was it allowed you to specify the typical attributes (like bgColor), but allowed your user to override these values. The problem here is users usually don't specify the preferences, or when they do they set the font color equal to the background color.
sp_html_preferences will use style sheets for newer browsers. It will also do other clever things like set the print size on the printer to 3/4 the print size on the screen (unless you say otherwise).
Procedure SP_HTML_PREFERENCES
(
APPEARANCE VARCHAR2
, ONLOAD VARCHAR2
, BGCOLOR VARCHAR2
, TEXT VARCHAR2
, BACKGROUND VARCHAR2
, FONTSIZE VARCHAR2
, POINTSIZE VARCHAR2
, POINTSIZE_PRINT VARCHAR2
, LINE_HEIGHT_PRINT VARCHAR2
, FONT VARCHAR2
, LINK VARCHAR2
, ALINK VARCHAR2
, VLINK VARCHAR2
, FACE VARCHAR2
, COLOR VARCHAR2
, TOPMARGIN VARCHAR2
, LEFTMARGIN VARCHAR2
, MARGINHEIGHT VARCHAR2
, MARGINWIDTH VARCHAR2
, ONRESIZE VARCHAR2
, "a:link" VARCHAR2
, "a:visited" VARCHAR2
, "a:hover" VARCHAR2
, "a:active" VARCHAR2
, "white-space" VARCHAR2
) ;
| Parameter | Description |
|---|---|
appearance |
Allows you to specify the default appearance. |
onLoad |
javascript:onload |
bgColor |
Background color. |
text |
Foreground color. |
backGround |
Background image. |
fontSize |
Font size (deprecated in favor of pointSize) |
pointSize |
Pointsize of screen. |
pointsize_print |
Pointsize of print. |
line_height_print |
Line height of print. |
font |
Font family |
link |
Color of links. |
aLink |
Color of active links. |
vLink |
Color of visited links. |
face |
Deprecated. |
color |
Deprecated. |
topmargin |
Topmargin of screen. |
leftmargin |
Leftmargin of screen. |
marginheight |
Marginheight of screen. |
marginwidth |
Marginwidth of screen. |
onresize |
javascript:onresize |
a:link |
Stylesheet "a:link" |
a:visited |
Stylesheet "a:visited" |
a:hover |
Stylesheet "a:hover" |
a:active |
Stylesheet "a:active" |
white-space |
Stylesheet "white-space" |
The following example illustrates how to call sp_html_preferences:
HTTP.SP_HTML_PREFERENCES
(
TOPMARGIN => '7'
, LEFTMARGIN => '7'
, LINK => 'black'
, VLINK => 'black'
, ALINK => 'red'
, BGCOLOR => 'white'
, ONLOAD => NULL
, "a:link" => 'color:black;text-decoration:none'
, "a:visited" => 'color:black;text-decoration:none'
, "a:active" => 'color:red;text-decoration:none'
, "a:hover" => 'color:blue;text-decoration:none'
) ;