Rotation

HTML (DHTML)

Rotation Property

Internet Development Index

Sets or retrieves the value that indicates whether the content is rotated in ninety-degree increments.

Syntax

HTML
N/A
Scripting
object.filters.item(
    "DXImageTransform.Microsoft.BasicImage").Rotation [ = iRotation ]

Possible Values

iRotationInteger that specifies or receives one of the following values:
0Default. Content is not rotated.
1Content is rotated 90 degrees.
2Content is rotated 180 degrees.
3Content is rotated 270 degrees.

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

Example

This sample sets the BasicImage filter to rotate the content of a DIV element 270 degrees.

<!-- This DIV is the target container for an image.  -->
<DIV ID="oDiv" STYLE="position:absolute; left:270px;" >
An Image - >
<IMG SRC='../common/earglobe.gif' />
</DIV>
<BUTTON onclick="oDiv.style.filter=
'progid:DXImageTransform.Microsoft.BasicImage(rotation=3)'">
Rotate 270 degrees</BUTTON><BR/>
<BUTTON onclick="oDiv.style.filter=''">Clear Filter</BUTTON><BR/>

Applies To

BasicImage