Kijk (ik nam dit van dhtmlcentral.com en maaakte het ,vééél, korter
)
<html>
<SCRIPT>
var deg = 0;
function fnRotation(oObj)
{
deg += 0.1;
costheta = Math.cos(deg);
sintheta = Math.sin(deg);
oObj.filters.item(0).M11 = costheta ;
oObj.filters.item(0).M12 = -sintheta ;
oObj.filters.item(0).M21 = sintheta ;
oObj.filters.item(0).M22 = costheta ;
setTimeout("fnRotation();",10);
}
</SCRIPT>
<HR ID="line"
STYLE="border:1px solid black;
position:absolute;
top:100px;
left:100px;
width:100px;
filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod = 'auto expand', FilterType='bilinear')
"
onfilterchange="fnRotation(this)"
>
</html>
Mara dit is nu het probleem, als je dit laat draaien dan is het net alsof die lijn tegen een onzichtbare muur aanbotst...
Is er iemand die weet hoe je het moet aanpassen zodat je het kan laten draaienn als de wijzers van een klok???
bedankt alvast om mij hierbij te helpen!!
Vancaeyzeele
<html>
<SCRIPT>
var deg = 0;
function fnRotation(oObj)
{
deg += 0.1;
costheta = Math.cos(deg);
sintheta = Math.sin(deg);
oObj.filters.item(0).M11 = costheta ;
oObj.filters.item(0).M12 = -sintheta ;
oObj.filters.item(0).M21 = sintheta ;
oObj.filters.item(0).M22 = costheta ;
setTimeout("fnRotation();",10);
}
</SCRIPT>
<HR ID="line"
STYLE="border:1px solid black;
position:absolute;
top:100px;
left:100px;
width:100px;
filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod = 'auto expand', FilterType='bilinear')
"
onfilterchange="fnRotation(this)"
>
</html>
Mara dit is nu het probleem, als je dit laat draaien dan is het net alsof die lijn tegen een onzichtbare muur aanbotst...
Is er iemand die weet hoe je het moet aanpassen zodat je het kan laten draaienn als de wijzers van een klok???
bedankt alvast om mij hierbij te helpen!!
Vancaeyzeele