0

[With an array of HTMLElementObject with their corresponding property values] 1 I obtain a circle by changing their x and y values as follows

<script>
 for(o=0;o<61;o++){
    eval('p'+o).style.top = Math.sin(o/9.6)*120+180;
    eval('p'+o).style.left = Math.cos(o/9.6)*120+180;
    eval('p'+o).innerText = '*';
  }
</script>

How can I rotate this object with given z properties like x and y?

Willie Cheng
  • 7,679
  • 13
  • 55
  • 68

0 Answers0