September 26, 2000 - Referencing Different Filters Separately
September 26, 2000|
Referencing Different Filters Separately
Tips: September 2000
Yehuda Shiran, Ph.D.
filterscollection can be accessed like any other object collection. One method is through the filter index in the collection. To enable the first filter, for example, of an object with
ID=mydiv, you can use the
mydiv.filters.item(0).enabled = true;
Another method is to specify the item's index by its name. In the following example, the script enables the
DropShadow filter and disable the
Engrave filter. Here is the code, followed by its result. Notice how one filter is referenced by its index and the other filter is referenced by its name:
Engravefilter is disabled in the script, and indeed the
DIVelement is not engraved.
Learn more about filters in Column 68, Introduction to Filters in IE 5.5 and Up.