spacer
Yehuda Shiran September 23, 2000
Defining a Filter in STYLE
Tips: September 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
There are several ways to define a filter. The first method calls for a simple HTML element instantiation. Here is an example for the glow filter:

<DIV id=imgObj style="FILTER: progid:DXImageTransform.Microsoft.glow(Color=red,Strength=3); WIDTH: 150;">
This filter is defined in STYLE...element.
</DIV>

which yields the following text box:

This filter is defined in STYLE...element.

The second method is based on the STYLE element. You instantiate a filter by adding its single-word name to the filter attribute. Here is the same example from above, only this time the filter is defined in the STYLE element:

<STYLE>
   .divglow {
             filter: glow(Color=red,Strength=3); 
             width: 150;
            }
</STYLE>
<DIV CLASS="divglow">
This filter is defined in STYLE...element.
</DIV>

which yields the following text:

This filter is defined in STYLE...element.

Learn more about filters in Column 68, Introduction to Filters in IE 5.5 and Up.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags