Partager via


shadowOpacity Attribute | ShadowOpacity Property

This topic documents a feature of Visual Filters and Transitions, which is deprecated as of Windows Internet Explorer 9.

Sets or retrieves the opacity level of a shadow created by the Blur filter.

Syntax

HTML
{ filter:progid:DXImageTransform.Microsoft.Blur(
    shadowOpacity = fOpacity ... ) ... }
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.Blur").ShadowOpacity [ = fOpacity ]

Possible Values

fOpacity Floating-point that specifies or receives the opacity level. The value can range between 0.0 (fully transparent) and 1.0 (fully opaque).
0.0
Transparent.
0.75
Default.
1.0
Opaque.

The property is read/write. The property has a default value of 0.75.

Remarks

This ShadowOpacity property only applies if the MakeShadow property is set to true.

When set to greater than 1.0, or set to less than 0.0, this property defaults to 0.75.

Example

This example places a shadow under the content of a DIV object. The DIV object is duplicated. The first DIV object displays the shadow, and the second is unfiltered.

    <DIV ID="oDiv" STYLE="position:absolute; left:70px; filter:
            progid:DXImageTransform.Microsoft.blur(pixelradius=3.0, makeshadow='true', ShadowOpacity=1.0)" >
        An image - >
        <IMG SRC='/workshop/graphics/earglobe.gif' />
    </DIV>
    <DIV ID="oDiv" STYLE="position:absolute; left:70px; " >
        An image - >
        <IMG SRC='/workshop/graphics/earglobe.gif' />
    </DIV>


Applies To

Blur

See Also

PixelRadius, Scripting Filters, Filter Design Considerations