Filter object (Object/JScript)

A single filter object obtained from an element's filters array.


JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyFilter = myElement.filters(anIndex)
IEmyFilter = myElement.filters[anIndex]
IEmyFilter = myFilters[anIndex]
Argument list:anIndexA reference to an element in a collection
Object properties:enabled

This object defines a visual effect that is used when the display is updated as the result of a change to the content of an element. The Filter object has properties that relate to the individual filters. There are some common properties (and methods) that are available to all filters and in some cases the same property name can mean different things depending on the filter being applied.

You should access the filter objects via the Filters collection because you may have the same filter type repeated for a cascading effect and so you need to be sure that you are addressing the right one.

There are three kinds of filters that can be applied to an object.

A visual filter is used to enhance the visual appearance of objects. Maybe to flip them over, add a glow effect or a drop shadow.

A reveal filter is used to apply a transition effect as the appearance changes.

A blend filter controls the speed at which a reveal filter is applied.

You can define more than one filter, they just need to be space separated from one another.

Here is a list of the procedural filter function names:

Here is a list of the static filters supported at version 5.5 of the MSIE browser:

The old blendTrans() and revealTrans() filters are now replaced by these transition filters:

Filters are defined as if they were a sequence of space delimited function calls. they aren't really functions because their argument passing mechanism is not truly JavaScript based. Arguments to each filter function are defined as name=value pairs.

Refer to the specific topics on each filter function for details of what it does and how you can control it.

When using the filters in the context of the style object, the function name for each filter must be preceded by this string (although some less sophisticated filters seem to work without this):


You can apply the filters directly as properties of the filter object that belongs to HTML element objects themselves.




These are deprecated filters that used to provide blends and reveals:

Note that the functionality and availability of the filters has changed significantly from version 4.0 to version 5.5 of the MSIE browser and the older deprecated filters have been assimilated into the functionality of the new filter set. No previously existing filter appearance has been lost but they do need to be operated differently.

See also:Element.filters[], onFilterChange, style.filter, style.textShadow, Transition

enabled n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-