|
| Robert E. Boughner |
| Cssstyle Command
Reference |
|
| 1. |
Introduction |
| |
This command reference lists the
commands you can use to style a coolTip using
inline styles by means of CSSSTYLE parameters. This
capability has been placed in this plugin because the class commands,
particularly the CSSW3C commands, afford one much more
flexibility in controlling the look of one's popup. To
make use of these commands, you need to insert the following
lines in your HEAD section.
<SCRIPT TYPE="text/javascript" SRC="cCore.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="cCssstyle.js"></SCRIPT>
This
capability is provided for users of the similar overLIB
utility who may have used inline styles on their web pages.
Remember that commands are always in uppercase (case-sensitive)
and can have none or up to two parameter values.
Download this
module as a zip file.
|
| 2. |
Commands |
| |
- CSSSTYLE
- Turns on inline CSS style features. When used on the
command line it sets the css variable of the Pop up Object
to CSSSTYLE.
Variable: cd_css
- PADUNIT unit
- The unit to be used for table cell padding. A string
value that can be either "px" or "%".
Default value is "px". Requires CSSSTYLE.
Variable: cd_padunit
- HEIGHTUNIT unit
- The unit to be used for table heights. A string value
that can be either "px" or "%". Default
value is "px". Requires CSSSTYLE.
Variable: cd_heighunit
- WIDTHUNIT unit
- The unit to be used for table widths. A string value
that can be either "px" or "%". Default
value is "px". Requires CSSSTYLE.
Variable: cd_widthunit
- TEXTSIZEUNIT unit 1
- The unit to be used when specifying text sizes. Can be
a length specifier, a string value, such as px, pt, in,
cm, etc. or % percent. Default value is "px".
Requires CSSSTYLE.
Variable: cd_textsizeunit
- TEXTDECORATION decoration
- Specifies how text should be decorated. A string value
that can be either "none", "underline", "line-through" or "blink".
Default value is "none". Requires CSSSTYLE.
Variable: cd_textdecoration
- TEXTSTYLE style
- Specifies how text is to be styled. A string value that
can be either "normal" or "italic".
Default value is "normal". Requires CSSSTYLE.
Variable: cd_textstyle
- TEXTWEIGHT weight
- Specifies the weight to be given to text. A string value
that can be either "normal", "bold", "bolder", "lighter",
etc. Default value is "normal". Requires CSSSTYLE.
Variable: cd_textweight
- CAPTIONSIZEUNIT unit 1
- The unit to be used when specifying caption text sizes.
Can be a length specifier, a string value, such as px,
pt, in, cm, etc. or % percent. Default value is "px".
Requires CSSSTYLE.
Variable: cd_captionsizeunit
- CAPTIONDECORATION decoration
- Specifies how the caption text should be decorated. A
string value that can be either "none", "underline", "line-through" or "blink".
Default value is "none". Requires CSSSTYLE.
Variable: cd_captiondecoration
- CAPTIONSTYLE style
- Specifies how the caption text is to be styled. A string
value that can be either "normal" or "italic".
Default value is "normal". Requires CSSSTYLE.
Variable: cd_captionstyle
- CAPTIONWEIGHT weight
- Specifies the weight to be given to the caption text.
A string value that can be either "normal", "bold", "bolder", "lighter",
etc. Default value is "normal". Requires CSSSTYLE.
Variable: cd_captionweight
- CLOSESIZEUNIT unit 1
- The unit to be used when specifying close text sizes.
Can be a length specifier, a string value, such as px,
pt, in, cm, etc. or % percent. Default value is "px".
Requires CSSSTYLE.
Variable: cd_closesizeunit
- CLOSEDECORATION decoration
- Specifies how the close text should be decorated. A string
value that can be either "none", "underline", "line-through" or "blink".
Default value is "none". Requires CSSSTYLE.
Variable: cd_closedecoration
- CLOSESTYLE style
- Specifies how the close text is to be styled. A string
value that can be either "normal" or "italic".
Default value is "normal". Requires CSSSTYLE.
Variable: cd_closestyle
- CLOSEWEIGHT weight
- Specifies the weight to be given to the close text. A
string value that can be either "normal", "bold", "bolder", "lighter",
etc. Default value is "normal". Requires CSSSTYLE.
Variable: cd_closeweight
|
| 3. |
Example |
| |
This is an example of
using the CSSSTYLE commands which uses the following command
call
coolTip('This popup uses CSSSTYLE commands', CSSSTYLE, STICKY, TEXTSIZE, 12,
CAPTION, 'CSSSTYLE Example', CAPTIONSIZE, 12, CAPTIONSTYLE, 'italic',
CLOSEWEIGHT, 'bold', CLOSEDECORATION, 'line-through', CLOSESIZE, 9, CLOSECOLOR,
'#ffffff', CLOSECLICK)
As can be seen, the command line can become quite long
since you have more parameters to specify. However, your
command lines can be shortened considerably by using the ctPageDefaults routine
in the core module.
1Since the default text size,
which is 1, is too small to be read, it will need to
be increased since this plugin assumes pixels as the standard
length specifier. |
|
|
|