alpha Filter

DHTML, HTML, & CSS

alpha Filter


Sets the level of opacity for the visual object.

Syntax

HTML<ELEMENT STYLE = "filter: alpha(sProperties)" ... >
Scriptingobject.style.filter = "alpha(sProperties)"

Possible Values

sProperties String that specifies one or more properties exposed by the filter.

Remarks

You can set the opacity as uniform or graded, in a linear or radial fashion.

Members

Example

This example uses the alpha filter and the opacity property to change the appearance of a button.

Sample Code

<STYLE>
   INPUT.aFilter {filter: alpha(opacity=50);}
</STYLE>

<INPUT TYPE=button VALUE="Button" CLASS="aFilter">

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.