Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Index

On this page

Function: rgba

Browser-independent alpha-channel management.

Parameters: Object reference (HTML element), number (red), number (green), number (blue), number (opacity)

Returns: string (background color CSS value)

Note: This function returns the required string value for setting background transparency, and applies an appropriate a filter to the element for IE6.