mask Filter

DHTML, HTML, & CSS

mask Filter


Takes the selected visual object, paints the transparent pixels a specific color, and makes a transparent mask from its nontransparent pixels.

Syntax

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

Possible Values

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

Members

Example

This example uses the mask filter and the color property to make a magenta mask of the DIV—that is, all transparent pixels are colored magenta and all nontransparent pixels are made transparent.

Sample Code

<STYLE>
   DIV.aFilter {filter: mask(color=#FF00FF); width: 150;}
</STYLE>

<DIV CLASS="aFilter">
This text is masked.
</DIV>

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.