Tuesday, November 07, 2006

How to rotate a image in HTML?

<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>

<BODY bgcolor="#FFFFFF" text="#000000">
<DIV ID="oDiv" STYLE="position:absolute; left:300px;">
<IMG SRC="me2.jpg">
</DIV>
<BUTTON onclick="oDiv.style.filter=
'progid:DXImageTransform.Microsoft.BasicImage(rotation=1)'">
Rotate 90 degrees
</BUTTON>
<!--rotation =
0 no rotation
1 rotate 90 degrees
2 rotate 180 degrees
3 rotate 270 degrees -->
</BODY>
</HTML>

No comments: