JSSTag.rgb() (Method)

A JSS style control method.

Availability:

JavaScript - 1.2
Netscape - 4.0
Deprecated
JavaScript syntax:NmyTags.anItem.rgb(aRed, aGreen, aBlue)
Argument list:aBlueBlue intensity value
aGreenGreen intensity value
anItemA tag name such as P or B or H1
aRedRed intensity value

The rgb() method provides a convenient way to define an RGB triplet in a single call.

Warnings:

Example code:

   // Some red text
   tags.P.rgb(255, 0, 0);

See also:JavaScript Style Sheets

Cross-references:

Wrox Instant JavaScript - page - 50