Rotating

VML must be initialized in an HTML webpage by the inclusion of the following code:

<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
<object id="VMLRender" codebase="vgx.dll" classid="CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E">
</object>

OR

<HTML xmlns:v = "urn:schemas-microsoft-com:vml">

<style>v\:* {BEHAVIOR: url(#default#VML)}</style>

By combining VML code with scripts you can animate the graphic objects.
















<script type="text/javascript">
<!--
var action=0;
var action1=0;

function react() {
action+=1
action1 += 10;
rect1.style.rotation = action + "deg";
rect1a.angle = action1

if(action>350){
action=5}
if(action1>350){
action1=5}

setTimeout("react()",100)
}

setTimeout("react()",1000)
// -->
</script>

<v:roundrect id=rect1 style="position:absolute; left:250px; top:100px; width:200px; height:200px;" arcsize="0.3" fillcolor="red" strokecolor="blue" strokeweight="1px">
<v:fill id=rect1a type="gradient" color2="green" method="sigma" angle="0"/>
</v:roundrect>