I recently required to do something similar to Apple's rotating iPod example in the safari HTML 5 showcase as seen in the link below (The page will redirect if your not using Safari) http://www.apple.com/html5/showcase/threesixty/
There are links to the developer section were you can apparently download the sample code whilst the example code is good and shows some cool card flipping, and rotating 3D flips it wasn't exactly what I wanted.
So I've packaged it all up nicely for you I've even included the minimised javascript files, I used an awesome little app called Smaller which I highly recommend.
View Demo of the 360 rotating HTML example
Oh and by the way it also works in Firefox! (Not sure about IE)