In the Blur example an inline style for the image applies the default blur() filter but then the style includes "enabled=0", so the effect is not rendered after all. In the onClick, each attribute of the filter is set. This could also be done with a function.
Another method is to use a script to apply the filter, then set the attributes, then play the filter.
You may have to add blank transparent space to the original image to have room for effects outside the original.
You may, on the other hand, WANT the edges chopped off. Just be aware of the way this works.
For text, the containing SPAN or DIV tag, for example, must be given fixed width and/or height for a filter to take effect. This makes sense when you consider that the filters will add screen space to the tag. You must tell the computer how much space it has to work with or else the effect will not be applied to the text. Be sure to size your SPAN or other object large enough!
Microsoft says in the Internet Client SDK: "Note- It is strongly recommended that CSS filters be accessed through the object model whenever possible, and the filter string be accessed only under special circumstances where object model functionality is not adequate. Even in the case of dynamically adding filters, it is recommended in most cases to actually add the filter in the initial filter attributes of the element's style sheet with enabled=0. When the script wants the filter to be displayed, it can then simply set that filter to enabled=1 and the filter will be displayed. "
Back to list of Filters