You may not know this, but Internet Explorer 4.x and above hasimage manipulation capabilities similar to those normally found only inimage editing programs like Adobe Photoshop. This article takes a look atIE5's image filters, and demonstrates how they can help you add specialeffects to your images and text on the fly.
The "mask" filter does exactly what its name suggests - it turns all the transparent pixels within an object into a specific colour and simultaneously takes all the non-transparent pixels in the specified object and turns them transparent. Note, however, that for this filter to work, the specified object must have some transparent pixels - like a transparent GIF or a block of text.
The following example turns the transparent areas of the image "square.gif" red.
Alternatively, if you'd like your image to appear in grayscale, you could simply use the "gray" filter to remove all colour information from the image.
And the "chroma" filter comes in handy when you need to make
specific colours within an object transparent. Images which are highly compressed or dithered, like JPEG images, typically show poor results with this filter. The code
would turn all instances of the colour red within the image
transparent.
<<< insert image9.gif and image10.gif >>>
If you're looking for something a little more unusual, there's the
"wave" filter, which performs a wave distortion across the object it's applied to. This works best with images, rather than text - take a look:
The "strength" attribute of the filter controls the level of intensity of the distortion, while the "freq" attribute controls the number of "waves" that appear in the distorted image.
The "glow" filter allows you to make your object glow - take a look: