2. The Script
There is only one piece to the rotating object script. The first thing you need to do is to select the code from the text box below (there is a highlight all button beneath it to make this easier) and copy it into a file called rotate.js.
You next attach the script into your web page that you wish to create your rotation animation on by adding the following code into the head section of your page.
The only thing left to do is to identify the object to be rotated.