shadowOpacity Attribute | ShadowOpacity

HTML (DHTML)

shadowOpacity Attribute | ShadowOpacity Property

Internet Development Index

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

fOpacityFloating-point that specifies or receives the opacity level. The value can range from 0.0 (fully transparent) to 1.0 (fully opaque).
0.0Transparent.
0.75Default.
1.0Opaque.

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

Remarks

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

When set to greater than 1.0 or 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, while 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='../common/earglobe.gif' />
</DIV>
<DIV ID="oDiv" STYLE="position:absolute; left:70px; " >
An image - >
<IMG SRC='../common/earglobe.gif' />
</DIV>

Applies To

Blur

See Also

PixelRadius, Scripting Filters, Filter Design Considerations