Opacity Attribute

HTML (DHTML)

Opacity Attribute

Internet Development Index

Defines the transparency of a fill. Read/write VgFraction.

Applies To

Fill

Tag Syntax

<v: element opacity="expression">

Script Syntax

element.opacity="expression"

expression=element.opacity

Remarks

The default value is 1.0.

VML Standard Attribute

Example

The fill of the shape will be 50% transparent.

   <v:shape id="rect01"
   coordorigin="0 0" coordsize="200 200"
   strokecolor="red"
   style="top:1;left:1;width:50;height:50"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">
   <v:fill opacity="50%" color="red"/>
   </v:shape>