how to rotate an image in JavaScript ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vkosuru
    New Member
    • Feb 2008
    • 3

    how to rotate an image in JavaScript ?

    hi ppl,

    I've got a problem. I am trying to show my output in a speedometer background image. I've a pointer(foregro und image) which i need to rotate on the speedometer depending on the value i get( say 20 ). The speedometer is of 180 degrees. I need a code snippet to do this.
    In general the calculation gives result from 5 - 40. The range on speedometer I'm looking is 0 - 50.

    thanks in advance.

    i'm doing this in javascript on windows platform.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Welcome to TheScripts!

    Try this link Javascript Speedometer

    Ronald

    Comment

    Working...